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 options', () => {
let contentFactory = new OutputAreaModel.ContentFactory();
model = new OutputAreaModel({
values: DEFAULT_OUTPUTS,
contentFactory,
trusted: true
});
expect(model.contentFactory).to.be(contentFactory);
expect(model.trusted).to.be(true);
});
it('should create an output model', () => {
let factory = new OutputAreaModel.ContentFactory();
let model = factory.createOutputModel({ value: DEFAULT_OUTPUTS[0] });
expect(model).to.be.an(OutputModel);
});
it('should create an output model', () => {
let factory = new OutputAreaModel.ContentFactory();
let model = factory.createOutputModel({ value: DEFAULT_OUTPUTS[0] });
expect(model).to.be.an(OutputModel);
});
it('should create an output model', () => {
const factory = new OutputAreaModel.ContentFactory();
const model = factory.createOutputModel({
value: NBTestUtils.DEFAULT_OUTPUTS[0]
});
expect(model).to.be.an.instanceof(OutputModel);
});
});
it('should accept options', () => {
const contentFactory = new OutputAreaModel.ContentFactory();
model = new OutputAreaModel({
values: NBTestUtils.DEFAULT_OUTPUTS,
contentFactory,
trusted: true
});
expect(model.contentFactory).to.equal(contentFactory);
expect(model.trusted).to.equal(true);
});
});
it('should accept options', () => {
let contentFactory = new OutputAreaModel.ContentFactory();
model = new OutputAreaModel({
values: DEFAULT_OUTPUTS,
contentFactory,
trusted: true
});
expect(model.contentFactory).to.be(contentFactory);
expect(model.trusted).to.be(true);
});