Skip to content

Commit

Permalink
test: fix tests when default versions contain hashes (#143)
Browse files Browse the repository at this point in the history
Refs: #137
  • Loading branch information
aduh95 authored Jul 8, 2022
1 parent 6a480a7 commit a79a763
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 a79a763

Please sign in to comment.