Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
defaultRendermime = new RenderMimeRegistry({ initialFactories });
registry = new LoggerRegistry({
defaultRendermime,
maxLength: 10
});
logConsole = new LogConsolePanel(registry);
});
afterEach(() => {
const createLogConsoleWidget = (options: ILogConsoleOptions = {}) => {
logConsolePanel = new LogConsolePanel(loggerRegistry);
logConsolePanel.source =
options.source !== undefined
? options.source
: nbtracker.currentWidget
? nbtracker.currentWidget.context.path
: null;
logConsoleWidget = new MainAreaWidget({ content: logConsolePanel });
logConsoleWidget.addClass('jp-LogConsole');
logConsoleWidget.title.closable = true;
logConsoleWidget.title.label = 'Log Console';
logConsoleWidget.title.iconClass = 'jp-LogConsoleIcon';
const addCheckpointButton = new CommandToolbarButton({
commands: app.commands,
const createLogConsoleWidget = (options: ILogConsoleOptions = {}) => {
logConsolePanel = new LogConsolePanel(loggerRegistry);
logConsolePanel.source =
options.source !== undefined
? options.source
: nbtracker.currentWidget
? nbtracker.currentWidget.context.path
: null;
logConsoleWidget = new MainAreaWidget({ content: logConsolePanel });
logConsoleWidget.addClass('jp-LogConsole');
logConsoleWidget.title.closable = true;
logConsoleWidget.title.label = 'Log Console';
logConsoleWidget.title.iconClass = 'jp-ListIcon';
const addCheckpointButton = new CommandToolbarButton({
commands: app.commands,