Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e19bcd8

Browse files
committed
Revert "Fix up other tests"
This reverts commit d8f903e.
1 parent 9225077 commit e19bcd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/tasks.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ test.serial('should release all the things (pre-release, github, gitlab)', async
333333
t.true(log.obtrusive.firstCall.args[0].endsWith(`release ${pkgName} (1.0.0...1.1.0-alpha.0)`));
334334
t.true(log.log.firstCall.args[0].endsWith(`https://www.npmjs.com/package/${pkgName}`));
335335
t.true(log.log.secondCall.args[0].endsWith(`https://github.com/${owner}/${project}/releases/tag/v1.1.0-alpha.0`));
336-
t.true(log.log.args[3][0].endsWith(`${project}/-/releases`));
336+
t.true(log.log.thirdCall.args[0].endsWith(`${project}/-/releases`));
337337
t.regex(log.log.lastCall.args[0], /Done \(in [0-9]+s\.\)/);
338338

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

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

390390
exec.restore();
391391
});

0 commit comments

Comments
 (0)