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 create a raw cell model', () => {
let factory = new CodeConsole.ModelFactory({});
expect(factory.createRawCell({})).to.be.a(RawCellModel);
});
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 create a code cell', () => {
let factory = new CodeConsole.ModelFactory({});
expect(factory.createCodeCell({})).to.be.a(CodeCellModel);
});
it('should create a raw cell model', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory.createRawCell({})).to.be.an.instanceof(RawCellModel);
});
});
it('should create a raw cell model', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory.createRawCell({})).to.be.an.instanceof(RawCellModel);
});
});
it('should be the code cell content factory used by the factory', () => {
let factory = new CodeConsole.ModelFactory({});
expect(factory.codeCellContentFactory).to.be(CodeCellModel.defaultContentFactory);
});
it('should create a code cell', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory.createCodeCell({})).to.be.an.instanceof(CodeCellModel);
});
});
it('should create a new model factory', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory).to.be.an.instanceof(CodeConsole.ModelFactory);
});
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 create a new model factory', () => {
const factory = new CodeConsole.ModelFactory({});
expect(factory).to.be.an.instanceof(CodeConsole.ModelFactory);
});