Skip to content

Commit d0668b4

Browse files
committed
updating tests in accordance with the new handler functions
1 parent b0c1895 commit d0668b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/live-watch/live-watch.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe('LiveWatchTreeDataProvider', () => {
196196
it('copy copies node expression to clipboard', async () => {
197197
const node = makeNode('node-to-copy', { result: '1', variablesReference: 0 }, 1);
198198
(liveWatchTreeDataProvider as any).roots = [node];
199-
await (liveWatchTreeDataProvider as any).registerCopyCommand(node);
199+
await (liveWatchTreeDataProvider as any).handleCopyCommand(node);
200200
expect(vscode.env.clipboard.writeText).toHaveBeenCalledWith('node-to-copy');
201201
});
202202

@@ -212,7 +212,7 @@ describe('LiveWatchTreeDataProvider', () => {
212212
selection: { active: { line: 0, character: 5 } }
213213
};
214214
(vscode.window as any).activeTextEditor = mockEditor;
215-
await (liveWatchTreeDataProvider as any).registerAddFromSelectionCommand();
215+
await (liveWatchTreeDataProvider as any).handleAddFromSelectionCommand();
216216
const roots = (liveWatchTreeDataProvider as any).roots;
217217
expect(mockEditor.document.getWordRangeAtPosition).toHaveBeenCalledWith(mockEditor.selection.active);
218218
expect(mockEditor.document.getText).toHaveBeenCalledWith(fakeRange);

0 commit comments

Comments
 (0)