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 accept a codeCellContentFactory', () => {
let codeCellContentFactory = new CodeCellModel.ContentFactory();
let factory = new CodeConsole.ModelFactory({ codeCellContentFactory });
expect(factory.codeCellContentFactory).to.be(codeCellContentFactory);
});
it('should be settable in the constructor', () => {
const codeCellContentFactory = new CodeCellModel.ContentFactory();
factory = new NotebookModel.ContentFactory({
codeCellContentFactory
});
expect(factory.codeCellContentFactory).to.equal(
codeCellContentFactory
);
});
});
it('should be settable in the constructor', () => {
const codeCellContentFactory = new CodeCellModel.ContentFactory();
factory = new NotebookModel.ContentFactory({
codeCellContentFactory
});
expect(factory.codeCellContentFactory).to.equal(
codeCellContentFactory
);
});
});
it('should create a new output area factory', () => {
const factory = new CodeCellModel.ContentFactory();
expect(factory).to.be.an.instanceof(CodeCellModel.ContentFactory);
});
});
it('should accept a codeCellContentFactory', () => {
const codeCellContentFactory = new CodeCellModel.ContentFactory();
const factory = new CodeConsole.ModelFactory({
codeCellContentFactory
});
expect(factory.codeCellContentFactory).to.equal(
codeCellContentFactory
);
});
});
it('should create an output area model', () => {
const factory = new CodeCellModel.ContentFactory();
expect(
factory.createOutputArea({ trusted: true })
).to.be.an.instanceof(OutputAreaModel);
});
});
it('should create an output area model', () => {
const factory = new CodeCellModel.ContentFactory();
expect(
factory.createOutputArea({ trusted: true })
).to.be.an.instanceof(OutputAreaModel);
});
});
it('should create a new output area factory', () => {
const factory = new CodeCellModel.ContentFactory();
expect(factory).to.be.an.instanceof(CodeCellModel.ContentFactory);
});
});
it('should accept a codeCellContentFactory', () => {
const codeCellContentFactory = new CodeCellModel.ContentFactory();
const factory = new CodeConsole.ModelFactory({
codeCellContentFactory
});
expect(factory.codeCellContentFactory).to.equal(
codeCellContentFactory
);
});
});
it('should accept a code cell content factory', () => {
const codeCellContentFactory = new CodeCellModel.ContentFactory();
const factory = new NotebookModelFactory({ codeCellContentFactory });
expect(factory.contentFactory.codeCellContentFactory).to.equal(
codeCellContentFactory
);
});