Skip to content

Commit

Permalink
Fix CLI test due to Node upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Aug 15, 2023
1 parent c08d4a8 commit 6136ac5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/cli/src/generate/file-system.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ describe('FileSystem', () => {
throw new Error('The error thrown should be an instance of ClientError.');
}
strictEqual(
error.message,
'The file package.json is not a valid JSON. Unexpected token h in JSON at position 0'
);
[
`The file package.json is not a valid JSON. Unexpected token 'h', "hello" is not valid JSON`,
'The file package.json is not a valid JSON. Unexpected token h in JSON at position 0',
].includes(error.message),
true,
)
}
});

Expand Down

0 comments on commit 6136ac5

Please sign in to comment.