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 editor factory used by the content factory', () => {
const factory = new Cell.ContentFactory({ editorFactory });
expect(factory.editorFactory).toEqual(editorFactory);
});
});
it('should create a ContentFactory', () => {
const factory = new Cell.ContentFactory({ editorFactory });
expect(factory).toBeInstanceOf(Cell.ContentFactory);
});
});
it('should create a new output prompt', () => {
const factory = new Cell.ContentFactory();
expect(factory.createOutputPrompt()).toBeInstanceOf(OutputPrompt);
});
});
it('should create a new cell header', () => {
const factory = new Cell.ContentFactory();
expect(factory.createCellHeader()).toBeInstanceOf(CellHeader);
});
});
it('should create a new cell footer', () => {
const factory = new Cell.ContentFactory();
expect(factory.createCellFooter()).toBeInstanceOf(CellFooter);
});
});
it('should create a new output prompt', () => {
const factory = new Cell.ContentFactory();
expect(factory.createOutputPrompt()).toBeInstanceOf(OutputPrompt);
});
});
it('should create a ContentFactory', () => {
const factory = new Cell.ContentFactory({ editorFactory });
expect(factory).toBeInstanceOf(Cell.ContentFactory);
});
});
it('should create a new input prompt', () => {
const factory = new Cell.ContentFactory();
expect(factory.createInputPrompt()).toBeInstanceOf(InputPrompt);
});
});
export function createBaseCellFactory(): Cell.IContentFactory {
return new Cell.ContentFactory({ editorFactory });
}
export function createCodeCellFactory(): Cell.IContentFactory {
return new Cell.ContentFactory({ editorFactory });
}