Example #1
0
 it('should dispose of the resources held by the document manager', () => {
   let model = new DocumentModel();
   model.dispose();
   expect(model.isDisposed).to.be(true);
 });
Example #2
0
 it('should be safe to call more than once', () => {
   let model = new DocumentModel();
   model.dispose();
   model.dispose();
   expect(model.isDisposed).to.be(true);
 });
Example #3
0
 it('should get whether the model has been disposed', () => {
   let model = new DocumentModel();
   expect(model.isDisposed).to.be(false);
   model.dispose();
   expect(model.isDisposed).to.be(true);
 });