浏览代码

Set more test timeouts

JC Brand 5 年之前
父节点
当前提交
6cd2fac33c
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2 2
      spec/emojis.js
  2. 5 0
      spec/presence.js

+ 2 - 2
spec/emojis.js

@@ -2,13 +2,13 @@
 
 
 const { Promise, $msg, $pres, sizzle } = converse.env;
 const { Promise, $msg, $pres, sizzle } = converse.env;
 const u = converse.env.utils;
 const u = converse.env.utils;
-const originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
+const original_timeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
 
 
 describe("Emojis", function () {
 describe("Emojis", function () {
     describe("The emoji picker", function () {
     describe("The emoji picker", function () {
 
 
         beforeEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = 7000));
         beforeEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = 7000));
-        afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout));
+        afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = original_timeout));
 
 
         it("can be opened by clicking a button in the chat toolbar",
         it("can be opened by clicking a button in the chat toolbar",
             mock.initConverse(
             mock.initConverse(

+ 5 - 0
spec/presence.js

@@ -1,8 +1,13 @@
 /*global mock */
 /*global mock */
 // See: https://xmpp.org/rfcs/rfc3921.html
 // See: https://xmpp.org/rfcs/rfc3921.html
 
 
+const original_timeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
+
 describe("A sent presence stanza", function () {
 describe("A sent presence stanza", function () {
 
 
+    beforeEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = 7000));
+    afterEach(() => (jasmine.DEFAULT_TIMEOUT_INTERVAL = original_timeout));
+
     it("includes a entity capabilities node",
     it("includes a entity capabilities node",
         mock.initConverse(
         mock.initConverse(
             ['rosterGroupsFetched'], {},
             ['rosterGroupsFetched'], {},