Example #1
0
 it('should dispose of the resources held by the factory', () => {
   const factory = new TextModelFactory();
   factory.dispose();
   expect(factory.isDisposed).to.equal(true);
 });
Example #2
0
 it('should be safe to call multiple times', () => {
   const factory = new TextModelFactory();
   factory.dispose();
   factory.dispose();
   expect(factory.isDisposed).to.equal(true);
 });
Example #3
0
 it('should get whether the factory is disposed', () => {
   const factory = new TextModelFactory();
   expect(factory.isDisposed).to.equal(false);
   factory.dispose();
   expect(factory.isDisposed).to.equal(true);
 });