Skip to content

Commit

Permalink
Move location of --json flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Timon Jurschitsch committed Nov 25, 2022
1 parent 7ab1b63 commit 6d4f036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/prerequisite-tasks.js
Expand Up @@ -10,7 +10,7 @@ let testedModule;

const testArgs = async () => {
const npmVersion = await versionNpm();
return semver.satisfies(npmVersion, '>=9.0.0') ? ['list collaborators', '--json'] : ['ls-collaborators', ''];
return semver.satisfies(npmVersion, '>=9.0.0') ? ['list collaborators', ' --json'] : ['ls-collaborators', ''];
};

const run = async listr => {
Expand Down Expand Up @@ -116,7 +116,7 @@ test.serial('should fail when user is not authenticated at npm registry', async
stdout: 'sindresorhus'
},
{
command: `npm access ${testArgs[0]} test ${testArgs[1]}`,
command: `npm access ${testArgs[0]} test${testArgs[1]}`,
exitCode: 0,
stdout: '{"sindresorhus": "read"}'
}
Expand All @@ -136,7 +136,7 @@ test.serial('should fail when user is not authenticated at external registry', a
stdout: 'sindresorhus'
},
{
command: `npm access ${testArgs[0]} test --registry http://my.io ${testArgs[1]}`,
command: `npm access ${testArgs[0]} test${testArgs[1]} --registry http://my.io`,
exitCode: 0,
stdout: '{"sindresorhus": "read"}'
}
Expand Down

0 comments on commit 6d4f036

Please sign in to comment.