telamonian 5 年之前
父节点
当前提交
b50364207e
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      tests/test-docregistry/src/context.spec.ts
  2. 1 1
      tests/test-notebook/package.json

+ 3 - 3
tests/test-docregistry/src/context.spec.ts

@@ -21,7 +21,7 @@ import {
   waitForDialog,
   acceptDialog,
   dismissDialog,
-  createNotebookContext,
+  initNotebookContext,
   NBTestUtils
 } from '@jupyterlab/testutils';
 
@@ -189,7 +189,7 @@ describe('docregistry/context', () => {
       });
 
       it('should initialize the model when the file is saved for the first time', async () => {
-        const context = await createNotebookContext();
+        const context = await initNotebookContext();
         context.model.fromJSON(NBTestUtils.DEFAULT_CONTENT);
         expect(context.model.cells.canUndo).to.equal(true);
         await context.initialize(true);
@@ -198,7 +198,7 @@ describe('docregistry/context', () => {
       });
 
       it('should initialize the model when the file is reverted for the first time', async () => {
-        const context = await createNotebookContext();
+        const context = await initNotebookContext();
         await manager.contents.save(context.path, {
           type: 'notebook',
           format: 'json',

+ 1 - 1
tests/test-notebook/package.json

@@ -12,8 +12,8 @@
     "test:debug": "python run-test.py  --browsers=Chrome --singleRun=false --debug=true --browserNoActivityTimeout=10000000 --browserDisconnectTimeout=10000000 karma.conf.js",
     "test:debug:chrome-headless": "python run-test.py  --browsers=ChromeHeadless --singleRun=false --debug=true --browserNoActivityTimeout=10000000 --browserDisconnectTimeout=10000000 karma.conf.js",
     "test:firefox": "python run-test.py --browsers=Firefox karma.conf.js",
-    "test:watch": "python run-test.py  --browsers=Chrome --singleRun=false --debug=true --watch --browserNoActivityTimeout=10000000 --browserDisconnectTimeout=10000000 karma.conf.js",
     "test:ie": "python run-test.py  --browsers=IE karma.conf.js",
+    "test:watch": "python run-test.py  --browsers=Chrome --singleRun=false --debug=true --watch --browserNoActivityTimeout=10000000 --browserDisconnectTimeout=10000000 karma.conf.js",
     "watch": "tsc -b --watch",
     "watch:src": "tsc -p src --watch"
   },