Add alias latest

This commit is contained in:
Shivam Mathur
2020-10-02 14:51:40 +05:30
parent 716331904e
commit ebba1db2c3
4 changed files with 49 additions and 5 deletions

View File

@ -26,6 +26,12 @@ describe('Utils tests', () => {
expect(await utils.getInput('DoesNotExist', false)).toBe('');
});
it('checking parseVersion', async () => {
expect(await utils.parseVersion('7')).toBe('7.0');
expect(await utils.parseVersion('7.4')).toBe('7.4');
expect(await utils.parseVersion('latest')).toBe('7.4');
});
it('checking asyncForEach', async () => {
const array: Array<string> = ['a', 'b', 'c'];
let concat = '';