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 an output prompt', () => {
const factory = new OutputArea.ContentFactory();
expect(factory.createOutputPrompt().executionCount).to.be.null;
});
});
it('should create a stdin widget', async () => {
const kernel = await Kernel.startNew();
await kernel.ready;
const factory = new OutputArea.ContentFactory();
const future = kernel.requestExecute({ code: CODE });
const options = {
prompt: 'hello',
password: false,
future
};
expect(factory.createStdin(options)).to.be.an.instanceof(Widget);
await kernel.shutdown();
kernel.dispose();
});
});
it('should create an output prompt', () => {
const factory = new OutputArea.ContentFactory();
expect(factory.createOutputPrompt().executionCount).to.be.null;
});
});
it('should create a stdin widget', async () => {
const kernel = await Kernel.startNew();
await kernel.ready;
const factory = new OutputArea.ContentFactory();
const future = kernel.requestExecute({ code: CODE });
const options = {
prompt: 'hello',
password: false,
future
};
expect(factory.createStdin(options)).to.be.an.instanceof(Widget);
await kernel.shutdown();
kernel.dispose();
});
});