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 a context parameter', () => {
let widget = new MarkdownViewer(context, RENDERMIME);
expect(widget).to.be.a(MarkdownViewer);
});
it('should be fulfilled when the widget is done rendering', () => {
let widget = new MarkdownViewer(context, RENDERMIME);
context.save();
return widget.ready.then(() => {
let layout = widget.layout as PanelLayout;
expect(layout.widgets.length).to.be(2);
});
});