Skip to content

Commit

Permalink
test: try always pass 'Commit missing files'
Browse files Browse the repository at this point in the history
  • Loading branch information
senyai committed Sep 17, 2023
1 parent ea429f0 commit 17e3a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/suite/commitSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ export function CommitSuite(this: Suite): void {
);
await repository.updateModelState();
sinon.assert.calledOnce(statusStub);
repository.sourceControl.inputBox.value = 'remove files';
const swm: sinon.SinonStub = this.ctx.sandbox
.stub(window, 'showWarningMessage')
.withArgs(sinon.match(/^Did you want to delete/))
Expand All @@ -317,6 +316,7 @@ export function CommitSuite(this: Suite): void {
.withArgs(sinon.match.array.startsWith(['commit']))
.resolves(fakeExecutionResult());

repository.sourceControl.inputBox.value = 'remove files';
await commands.executeCommand('fossil.commitWithInput');
sinon.assert.calledOnceWithExactly(
swm,
Expand Down

0 comments on commit 17e3a38

Please sign in to comment.