Skip to content

Commit 3bc7bd5

Browse files
authored
update version-file tests to reflect change
1 parent 44deb24 commit 3bc7bd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/version-file/__tests__/version-file.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe("Test Release Types", () => {
217217
await hooks.canary.promise({bump: SEMVER.minor, canaryIdentifier: "canary.368.1"})
218218

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

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

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

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

0 commit comments

Comments
 (0)