Skip to content

Commit 97adc29

Browse files
committed
💂
1 parent cc62699 commit 97adc29

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

extensions/vscode-notebook-tests/src/notebook.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,14 @@ suite('API tests', () => {
130130
assert.deepEqual(cellChangeEventRet.changes[0], {
131131
start: 1,
132132
deletedCount: 0,
133+
deletedItems: [],
133134
items: [
134135
vscode.notebook.activeNotebookEditor!.document.cells[1]
135136
]
136137
});
137138

139+
const secondCell = vscode.notebook.activeNotebookEditor!.document.cells[1];
140+
138141
const moveCellEvent = getEventOncePromise<vscode.NotebookCellsChangeEvent>(vscode.notebook.onDidChangeNotebookCells);
139142
await vscode.commands.executeCommand('notebook.cell.moveUp');
140143
const moveCellEventRet = await moveCellEvent;
@@ -144,11 +147,13 @@ suite('API tests', () => {
144147
{
145148
start: 1,
146149
deletedCount: 1,
150+
deletedItems: [secondCell],
147151
items: []
148152
},
149153
{
150154
start: 0,
151155
deletedCount: 0,
156+
deletedItems: [],
152157
items: [vscode.notebook.activeNotebookEditor?.document.cells[0]]
153158
}
154159
]
@@ -203,11 +208,13 @@ suite('API tests', () => {
203208
{
204209
start: 0,
205210
deletedCount: 1,
211+
deletedItems: [activeCell],
206212
items: []
207213
},
208214
{
209215
start: 1,
210216
deletedCount: 0,
217+
deletedItems: [],
211218
items: [activeCell]
212219
}
213220
]

0 commit comments

Comments
 (0)