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 new content factory', () => {
const factory = new InputArea.ContentFactory();
expect(factory).to.be.an.instanceof(InputArea.ContentFactory);
});
});
it('should create an input prompt', () => {
const factory = new InputArea.ContentFactory();
expect(factory.createInputPrompt()).to.be.an.instanceof(InputPrompt);
});
});
it('should create an input prompt', () => {
const factory = new InputArea.ContentFactory();
expect(factory.createInputPrompt()).to.be.an.instanceof(InputPrompt);
});
});
it('should be the code editor factory being used', () => {
const factory = new InputArea.ContentFactory();
expect(factory.editorFactory).to.equal(
InputArea.defaultEditorFactory
);
});
});
it('should be the code editor factory being used', () => {
const factory = new InputArea.ContentFactory();
expect(factory.editorFactory).to.equal(
InputArea.defaultEditorFactory
);
});
});
it('should create a new content factory', () => {
const factory = new InputArea.ContentFactory();
expect(factory).to.be.an.instanceof(InputArea.ContentFactory);
});
});