Skip to content

Commit

Permalink
Revert "Fix up other tests"
Browse files Browse the repository at this point in the history
This reverts commit d8f903e.
  • Loading branch information
webpro committed Oct 9, 2024
1 parent 9225077 commit e19bcd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ test.serial('should release all the things (pre-release, github, gitlab)', async
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...1.1.0-alpha.0)`));
t.true(log.log.firstCall.args[0].endsWith(`https://www.npmjs.com/package/${pkgName}`));
t.true(log.log.secondCall.args[0].endsWith(`https://github.com/${owner}/${project}/releases/tag/v1.1.0-alpha.0`));
t.true(log.log.args[3][0].endsWith(`${project}/-/releases`));
t.true(log.log.thirdCall.args[0].endsWith(`${project}/-/releases`));
t.regex(log.log.lastCall.args[0], /Done \(in [0-9]+s\.\)/);

exec.restore();
Expand Down Expand Up @@ -365,7 +365,7 @@ test.serial('should publish pre-release without pre-id with different npm.tag',
t.is(stdout.trim(), 'v2.0.0-0');
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...2.0.0-0)`));
t.true(log.log.firstCall.args[0].endsWith(`https://www.npmjs.com/package/${pkgName}`));
t.regex(log.log.args[1][0], /Done \(in [0-9]+s\.\)/);
t.regex(log.log.lastCall.args[0], /Done \(in [0-9]+s\.\)/);

exec.restore();
});
Expand All @@ -385,7 +385,7 @@ test.serial('should handle private package correctly, bump lockfile', async t =>
t.deepEqual(npmArgs, ['npm version 1.0.1 --no-git-tag-version']);
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...1.0.1)`));
t.is(log.warn.length, 0);
t.regex(log.log.args[0][0], /Done \(in [0-9]+s\.\)/);
t.regex(log.log.firstCall.args[0], /Done \(in [0-9]+s\.\)/);

exec.restore();
});
Expand Down

0 comments on commit e19bcd8

Please sign in to comment.