Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KetanReddy committed Feb 3, 2022
1 parent ceba7a2 commit a9cac5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/version-file/__tests__/version-file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe("Version File Write Operations", () => {
await hooks.version.promise({bump: SEMVER.major})
expect(fs.readFileSync("VERSION", "utf-8")).toStrictEqual("2.0.0")
// check that the proper git operations were performed
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "Bump version to: v2.0.0 [skip ci]"]);
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "\"Bump version to: v2.0.0 [skip ci]\""]);
expect(execPromise).toHaveBeenNthCalledWith(2, "git", ["tag", "v2.0.0"]);
});

Expand All @@ -97,7 +97,7 @@ describe("Version File Write Operations", () => {
await hooks.version.promise({bump: SEMVER.minor})
expect(fs.readFileSync("VERSION", "utf-8")).toStrictEqual("1.1.0");
// check that the proper git operations were performed
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "Bump version to: v1.1.0 [skip ci]"]);
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "\"Bump version to: v1.1.0 [skip ci]\""]);
expect(execPromise).toHaveBeenNthCalledWith(2, "git", ["tag", "v1.1.0"]);
});

Expand Down

0 comments on commit a9cac5d

Please sign in to comment.