Skip to content

Commit

Permalink
test(util): fix if-check unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
manushak committed Dec 6, 2024
1 parent 56c8ed3 commit 4447955
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__tests__/if-check/util/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jest.mock('child_process', () => {
'npm run if-run -- -m ./src/__mocks__/mock-manifest.yaml -o src/__mocks__/re-mock-manifest',
'node -p Boolean(process.stdout.isTTY)',
'npm run if-diff -- -s src/__mocks__/re-mock-manifest.yaml -t ./src/__mocks__/mock-manifest.yaml',
].includes(`${file} ${args.join(' ')}`)
].includes(
Array.isArray(args) ? `${file} ${args.join(' ')}` : file.trim()
)
).toBeTruthy();
break;
}
Expand Down

0 comments on commit 4447955

Please sign in to comment.