Browse Source

work in progress

A. Darian 9 years ago
parent
commit
bc7fd6f5a9
1 changed files with 6 additions and 3 deletions
  1. 6 3
      test/src/notebook/cells/widget.spec.ts

+ 6 - 3
test/src/notebook/cells/widget.spec.ts

@@ -77,9 +77,12 @@ describe('jupyter-js-notebook', () => {
 
     describe('#model', () => {
 
-      it('should be read-only', () => {
-        let widget = new BaseCellWidget(new CellModel());
-        expect(() => { widget.model = null; }).to.throwError();
+      it('should be settable', () => {
+        let model = new CellModel();
+        let widget = new BaseCellWidget(model);
+        expect(widget.model).to.be(model);
+        widget.model = new CellModel();
+        expect(widget.model).not.to.be(model);
       });
 
     });