mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-19 12:04:43 +07:00
Fix second run in the same job
Refactor install.ts and its tests
This commit is contained in:
@ -219,9 +219,9 @@ describe('Utils tests', () => {
|
||||
});
|
||||
|
||||
it('checking scriptTool', async () => {
|
||||
expect(await utils.scriptTool('linux')).toBe('bash');
|
||||
expect(await utils.scriptTool('darwin')).toBe('bash');
|
||||
expect(await utils.scriptTool('win32')).toBe('pwsh');
|
||||
expect(await utils.scriptTool('linux')).toBe('bash ');
|
||||
expect(await utils.scriptTool('darwin')).toBe('bash ');
|
||||
expect(await utils.scriptTool('win32')).toBe('pwsh ');
|
||||
expect(await utils.scriptTool('openbsd')).toContain(
|
||||
'Platform openbsd is not supported'
|
||||
);
|
||||
|
Reference in New Issue
Block a user