فهرست منبع

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();
+      });
     });
 
   });