Skip to content

Commit

Permalink
test(publish-with-publish-please): fix test on CI with npm version 6.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
hdorgeval committed Jun 29, 2019
1 parent b487d88 commit d85a4ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/13-integration-tests.js
Expand Up @@ -1171,15 +1171,14 @@ describe('Integration tests', () => {
return assert(err.message.indexOf(GUARD_ERROR) >= 0);
}));

it.only('Should allow publishing with special flag', () =>
it('Should allow publishing with special flag', () =>
exec('npm publish --with-publish-please')
// NOTE: it will reject anyway because this package version already
// published or test host don't have permissions to do that
.then(() => {
throw new Error('Promise rejection expected');
})
.catch((err) => {
console.log(err.message);
// prettier-ignore
assert(
err.message.indexOf('You do not have permission to publish') > -1 ||
Expand Down

0 comments on commit d85a4ab

Please sign in to comment.