@@ -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