Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
paleite committed Aug 7, 2022
1 parent 2f01120 commit b2c8575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/git.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ describe("getUntrackedFileList", () => {
);
const staged = false;
const fileListB = getUntrackedFileList(staged);
expect(mockedChildProcess.execFileSync).toHaveBeenCalledTimes(2);
// `getUntrackedFileList` uses a cache, so the number of calls to
// `execFileSync` will not have increased.
expect(mockedChildProcess.execFileSync).toHaveBeenCalledTimes(1);

expect(fileListA).toEqual(
["file1", "file2", "file3"].map((p) => path.resolve(p))
Expand Down

0 comments on commit b2c8575

Please sign in to comment.