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 require options', () => {
const renderer = RENDERMIME.createRenderer('text/markdown');
const widget = new MimeContent({
context: dContext,
renderer,
mimeType: 'text/markdown',
renderTimeout: 1000,
dataType: 'string'
});
expect(widget).to.be.an.instanceof(MimeContent);
});
});
it('should require options', () => {
const renderer = RENDERMIME.createRenderer('text/markdown');
const widget = new MimeContent({
context: dContext,
renderer,
mimeType: 'text/markdown',
renderTimeout: 1000,
dataType: 'string'
});
expect(widget).to.be.an.instanceof(MimeContent);
});
});