瀏覽代碼

Update test.

Ian Rose 7 年之前
父節點
當前提交
610e2fd07b
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      tests/test-fileeditor/src/widget.spec.ts

+ 8 - 8
tests/test-fileeditor/src/widget.spec.ts

@@ -108,14 +108,6 @@ describe('fileeditorcodewrapper', () => {
         }).then(done, done);
       });
 
-      it('should add the dirty class when the model is dirty', (done) => {
-        context.save().catch(done);
-        context.ready.then(() => {
-          context.model.fromString('bar');
-          expect(widget.title.className).to.contain('jp-mod-dirty');
-        }).then(done, done);
-      });
-
     });
 
     describe('#context', () => {
@@ -190,6 +182,14 @@ describe('fileeditorcodewrapper', () => {
         }).catch(done);
       });
 
+      it('should add the dirty class when the model is dirty', (done) => {
+        context.save().catch(done);
+        context.ready.then(() => {
+          context.model.fromString('bar');
+          expect(widget.title.className).to.contain('jp-mod-dirty');
+        }).then(done, done);
+      });
+
     });
 
     describe('#context', () => {