Example #1
0
 it('should accept a language preference', () => {
   const factory = new TextModelFactory();
   const model = factory.createNew('foo');
   expect(model.defaultKernelLanguage).to.equal('foo');
 });
Example #2
0
 it('should create a new model', () => {
   const factory = new TextModelFactory();
   const model = factory.createNew();
   expect(model).to.be.an.instanceof(DocumentModel);
 });