This commit is contained in:
rebornix
2020-06-09 13:19:57 -07:00
parent cc62699a1d
commit 97adc29122

View File

@@ -130,11 +130,14 @@ suite('API tests', () => {
assert.deepEqual(cellChangeEventRet.changes[0], {
start: 1,
deletedCount: 0,
deletedItems: [],
items: [
vscode.notebook.activeNotebookEditor!.document.cells[1]
]
});
const secondCell = vscode.notebook.activeNotebookEditor!.document.cells[1];
const moveCellEvent = getEventOncePromise<vscode.NotebookCellsChangeEvent>(vscode.notebook.onDidChangeNotebookCells);
await vscode.commands.executeCommand('notebook.cell.moveUp');
const moveCellEventRet = await moveCellEvent;
@@ -144,11 +147,13 @@ suite('API tests', () => {
{
start: 1,
deletedCount: 1,
deletedItems: [secondCell],
items: []
},
{
start: 0,
deletedCount: 0,
deletedItems: [],
items: [vscode.notebook.activeNotebookEditor?.document.cells[0]]
}
]
@@ -203,11 +208,13 @@ suite('API tests', () => {
{
start: 0,
deletedCount: 1,
deletedItems: [activeCell],
items: []
},
{
start: 1,
deletedCount: 0,
deletedItems: [],
items: [activeCell]
}
]