浏览代码

Fix test.

Ian Rose 6 年之前
父节点
当前提交
4329afee8d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/test-notebook/src/model.spec.ts

+ 2 - 2
tests/test-notebook/src/model.spec.ts

@@ -85,8 +85,8 @@ describe('@jupyterlab/notebook', () => {
         model.fromJSON(NBTestUtils.DEFAULT_CONTENT);
         model.cells.undo();
         expect(model.cells.length).to.equal(1);
-        expect(model.cells.get(1).value.text).to.equal('foo');
-        expect(model.cells.get(1)).to.equal(cell); // should be ===.
+        expect(model.cells.get(0).value.text).to.equal('foo');
+        expect(model.cells.get(0)).to.equal(cell); // should be ===.
       });
 
       context('cells `changed` signal', () => {