Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should be the code cell content factory used by the factory', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory.codeCellContentFactory).to.equal(
CodeCellModel.defaultContentFactory
);
});
});
it('should be the code cell content factory used by the factory', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory.codeCellContentFactory).to.equal(
CodeCellModel.defaultContentFactory
);
});
});
it('should be an ContentFactory', () => {
expect(CodeCellModel.defaultContentFactory).to.be.a(CodeCellModel.ContentFactory);
});
it('should be an ContentFactory', () => {
expect(CodeCellModel.defaultContentFactory).to.be.an.instanceof(
CodeCellModel.ContentFactory
);
});
});
it('should be a code cell content factory', () => {
expect(factory.codeCellContentFactory).to.equal(
CodeCellModel.defaultContentFactory
);
});
it('should be an ContentFactory', () => {
expect(CodeCellModel.defaultContentFactory).to.be.an.instanceof(
CodeCellModel.ContentFactory
);
});
});
constructor(options: ContentFactory.IOptions) {
this.codeCellContentFactory =
options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
this.modelDB = options.modelDB;
}
constructor(options: IModelFactoryOptions = {}) {
this.codeCellContentFactory =
options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
}
constructor(options: ContentFactory.IOptions) {
this.codeCellContentFactory =
options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
this.modelDB = options.modelDB;
}
constructor(options: IModelFactoryOptions = {}) {
this.codeCellContentFactory =
options.codeCellContentFactory || CodeCellModel.defaultContentFactory;
}