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 not skip collapsed cells and in command mode', () => {
widget.activeCellIndex = 3;
widget.mode = 'command';
widget.widgets[1].inputHidden = true;
widget.widgets[2].inputHidden = true;
widget.widgets[3].inputHidden = false;
NotebookActions.selectAbove(widget);
expect(widget.activeCellIndex).to.equal(2);
});
});
execute: () => NotebookActions.selectAbove(nbWidget.content)
});
execute: () => NotebookActions.selectAbove(nbWidget.content)
});
execute: args => {
const current = getCurrent(args);
if (current) {
const { content } = current;
if (content.activeCell !== null &&
content.activeCell.model.type === 'markdown') {
(current.content.activeCell as MarkdownCell).rendered = true;
}
return NotebookActions.selectAbove(current.content);
}
},
isEnabled
execute: args => {
const current = getCurrent(args);
if (current) {
return NotebookActions.selectAbove(current.notebook);
}
},
isEnabled
execute: () => NotebookActions.selectAbove(nbWidget.content)
});
execute: args => {
const current = getCurrent(args);
if (current) {
return NotebookActions.selectAbove(current.notebook);
}
},
isEnabled
execute: () => NotebookActions.selectAbove(nbWidget.notebook)
});
execute: () => NotebookActions.selectAbove(nbWidget.content)
});
execute: args => {
const current = getCurrent(args);
if (current) {
return NotebookActions.selectAbove(current.content);
}
},
isEnabled