Skip to content

Commit

Permalink
remove call to refresh workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Dec 5, 2024
1 parent 4222595 commit b7fe6ad
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ suite('DeleteWorkspaceItemCommand Tests', () => {

const showWarningMessageStub = sinon.stub(vscode.window, 'showWarningMessage').resolves(yesAnswer);
const showInformationMessageStub = sinon.stub(vscode.window, 'showInformationMessage').resolves();
const executeCommandStub = sinon.stub(vscode.commands, 'executeCommand').resolves();
const deleteItemStub = sinon.stub(command as any, 'deleteItem').resolves([{ message: 'removed successfully' }]);

await command.execute(workspaceTreeItem);

assert.strictEqual(showWarningMessageStub.calledOnce, true);
assert.strictEqual(showInformationMessageStub.calledOnce, true);
assert.strictEqual(executeCommandStub.calledWith('kiota.workspace.refresh'), true);
assert.strictEqual(deleteItemStub.calledOnce, true);
});

Expand Down

0 comments on commit b7fe6ad

Please sign in to comment.