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 switch the widget to command mode', () => {
NotebookActions.undo(widget);
widget.mode = 'edit';
NotebookActions.redo(widget);
expect(widget.mode).to.equal('command');
});
it('should switch the widget to command mode', () => {
NotebookActions.undo(widget);
widget.mode = 'edit';
NotebookActions.redo(widget);
expect(widget.mode).to.equal('command');
});
execute: args => {
const current = getCurrent(args);
if (current) {
return NotebookActions.redo(current.notebook);
}
},
isEnabled
execute: () => NotebookActions.redo(nbWidget.notebook)
});
execute: () => NotebookActions.redo(nbWidget.content)
});
execute: () => NotebookActions.redo(nbWidget.content)
});
execute: () => NotebookActions.redo(nbWidget.content)
});
execute: () => NotebookActions.redo(nbWidget.content)
});
execute: args => {
const current = getCurrent(args);
if (current) {
return NotebookActions.redo(current.content);
}
},
isEnabled
execute: () => NotebookActions.redo(nbWidget.content)
});