瀏覽代碼

remove test timeout

Leopoldthecoder 8 年之前
父節點
當前提交
dc7de86a67
共有 4 個文件被更改,包括 3 次插入4 次删除
  1. 1 1
      test/unit/specs/dialog.spec.js
  2. 1 1
      test/unit/specs/dropdown.spec.js
  3. 1 1
      test/unit/specs/form.spec.js
  4. 0 1
      test/unit/specs/menu.spec.js

+ 1 - 1
test/unit/specs/dialog.spec.js

@@ -28,7 +28,7 @@ describe('Dialog', () => {
       expect(dialog.$el.style.display).to.not.equal('none');
       done();
     }, 10);
-  }).timeout(3000);
+  });
 
   it('render correct content', done => {
     vm = createVue({

+ 1 - 1
test/unit/specs/dropdown.spec.js

@@ -152,7 +152,7 @@ describe('Dropdown', () => {
         done();
       }, 300);
     }, 300);
-  }).timeout(3000);
+  });
   it('hide on click', done => {
     vm = createVue({
       template: `

+ 1 - 1
test/unit/specs/form.spec.js

@@ -357,7 +357,7 @@ describe('Form', () => {
           }, 100);
         }, 100);
       });
-    }).timeout(3000);
+    });
     it('datepicker', done => {
       vm = createVue({
         template: `

+ 0 - 1
test/unit/specs/menu.spec.js

@@ -147,7 +147,6 @@ describe('Menu', () => {
     });
   });
   describe('submenu', function() {
-    this.timeout(3000);
     it('toggle', done => {
       vm = createVue({
         template: `