fix: prefer getMultilineInput and getBooleanInput from actions/core

This commit is contained in:
Sibiraj 2022-02-27 08:25:13 +05:30
parent a7bb76508d
commit 9758f4618e
3 changed files with 8 additions and 31 deletions

View file

@ -17,14 +17,6 @@ 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(