From 3bc7bd5dd686d260eca14a760e3d7faa668471d9 Mon Sep 17 00:00:00 2001 From: Jeremiah Zucker Date: Fri, 12 Jul 2024 16:51:21 -0400 Subject: [PATCH] update version-file tests to reflect change --- plugins/version-file/__tests__/version-file.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/version-file/__tests__/version-file.test.ts b/plugins/version-file/__tests__/version-file.test.ts index 003bf83a4..44c801396 100644 --- a/plugins/version-file/__tests__/version-file.test.ts +++ b/plugins/version-file/__tests__/version-file.test.ts @@ -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"]); @@ -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"]); @@ -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") }); -}); \ No newline at end of file +});