浏览代码

Close test dialog after use (no cleanup)

Vidar Tonaas Fauske 8 年之前
父节点
当前提交
c6ee2f0579
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      test/src/dialog/dialog.spec.ts

+ 4 - 1
test/src/dialog/dialog.spec.ts

@@ -148,7 +148,10 @@ describe('dialog/index', () => {
         let body = new TestWidget(resolve);
         showDialog({ body });
       });
-      promise.then(done);
+      promise.then(() => {
+        dismissDialog();
+        done();
+      });
     });
 
   });