Fix second run in the same job

Refactor install.ts and its tests
This commit is contained in:
Shivam Mathur
2022-01-30 08:45:11 +05:30
parent 0022878947
commit 5acd006232
5 changed files with 82 additions and 150 deletions

View File

@ -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'
);