Skip to content

Commit

Permalink
test: fix tests when default versions contain hashes
Browse files Browse the repository at this point in the history
Refs: #137
  • Loading branch information
aduh95 committed Jul 8, 2022
1 parent 6a480a7 commit 1200c4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,17 @@ it(`should allow to call "prepare" with --all to prepare all package managers`,

try {
await expect(runCli(cwd, [`yarn`, `--version`])).resolves.toMatchObject({
stdout: `${config.definitions.yarn.default}\n`,
stdout: `${config.definitions.yarn.default.split(`+`, 1)[0]}\n`,
exitCode: 0,
});

await expect(runCli(cwd, [`pnpm`, `--version`])).resolves.toMatchObject({
stdout: `${config.definitions.pnpm.default}\n`,
stdout: `${config.definitions.pnpm.default.split(`+`, 1)[0]}\n`,
exitCode: 0,
});

await expect(runCli(cwd, [`npm`, `--version`])).resolves.toMatchObject({
stdout: `${config.definitions.npm.default}\n`,
stdout: `${config.definitions.npm.default.split(`+`, 1)[0]}\n`,
exitCode: 0,
});
} finally {
Expand Down

0 comments on commit 1200c4a

Please sign in to comment.