revert: getMultilineInput to getInputAsArray

This commit is contained in:
Sibiraj 2022-02-28 08:48:04 +05:30
parent ab22478357
commit 998527a682
3 changed files with 28 additions and 5 deletions

View file

@ -17,6 +17,14 @@ describe('utils tests', () => {
}
})
test('getStringAsArray splits string input by newlines and commas', async () => {
const array = utils.getStringAsArray('1, 2, 3\n4, 5, 6')
expect(array.length).toEqual(6)
const array2 = utils.getStringAsArray('')
expect(array2.length).toEqual(0)
})
test('getRepoPath successfully returns the path to the repository', async () => {
expect(utils.getRepoPath()).toEqual(process.env['GITHUB_WORKSPACE'])
expect(utils.getRepoPath('foo')).toEqual(