Skip to content

Commit

Permalink
test: replace stub with spy
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed May 11, 2024
1 parent 74c4851 commit ecc0746
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/suite/setup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ suite('Setup', () => {
const cwd = uri.fsPath as FossilCWD;
await cleanupFossil(repository);
const closeStub = sandbox
.stub(executable, 'exec')
.callThrough()
.spy(executable, 'exec')
.withArgs(cwd, sinon.match.array.startsWith(['close']));

await vscode.commands.executeCommand('fossil.close');
Expand Down

0 comments on commit ecc0746

Please sign in to comment.