Skip to content

Commit

Permalink
update version-file tests to reflect change
Browse files Browse the repository at this point in the history
  • Loading branch information
sugarmanz authored Jul 12, 2024
1 parent 44deb24 commit 3bc7bd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/version-file/__tests__/version-file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe("Test Release Types", () => {
await hooks.canary.promise({bump: SEMVER.minor, canaryIdentifier: "canary.368.1"})

// check release script was called
expect(execPromise).toHaveBeenNthCalledWith(1, "./tools/release.sh", ["snapshot"]);
expect(execPromise).toHaveBeenNthCalledWith(1, "./tools/release.sh", ["canary"]);

// check local changes were reverted
expect(execPromise).toHaveBeenNthCalledWith(2, "git", ["reset", "--hard", "HEAD"]);
Expand Down Expand Up @@ -293,7 +293,7 @@ describe("Test Release Types", () => {
await hooks.next.promise(["1.0.0"], {bump: SEMVER.major, fullReleaseNotes:"", releaseNotes:"", commits:[]})

// check release script was called
expect(execPromise).toHaveBeenNthCalledWith(1, "./tools/release.sh", ["snapshot"]);
expect(execPromise).toHaveBeenNthCalledWith(1, "./tools/release.sh", ["next"]);

// Check git ops
expect(execPromise).toHaveBeenNthCalledWith(2, "git", ["tag", "v2.0.0-next.0"]);
Expand All @@ -302,4 +302,4 @@ describe("Test Release Types", () => {
// Check the right version was written
expect(fs.readFileSync("VERSION", "utf-8")).toStrictEqual("v2.0.0-next.0")
});
});
});

0 comments on commit 3bc7bd5

Please sign in to comment.