This commit is contained in:
Nikolai Laevskii 2023-09-08 15:30:07 +02:00
parent 4b20cd3fb1
commit ff40a49913

View File

@ -162,9 +162,7 @@ describe('installer tests', () => {
const scriptArguments = ( const scriptArguments = (
getExecOutputSpy.mock.calls[callIndex][1] as string[] getExecOutputSpy.mock.calls[callIndex][1] as string[]
).join(' '); ).join(' ');
const expectedArgument = IS_WINDOWS const expectedArgument = IS_WINDOWS ? `-Runtime` : `--runtime`;
? `-Runtime`
: `--runtime`;
expect(scriptArguments).toContain(expectedArgument); expect(scriptArguments).toContain(expectedArgument);
}); });