Updating readConfig() to be more readable, get rid of typecasts.
Co-authored-by: Henri Maurer <hmaurer@github.com>
This commit is contained in:
@@ -41,9 +41,3 @@ test('it raises an error when given an unknown severity', async () => {
|
||||
process.env['INPUT_FAIL-ON-SEVERITY'] = 'zombies!'
|
||||
expect(() => readConfig()).toThrow()
|
||||
})
|
||||
|
||||
test('it works on uppercase severities', async () => {
|
||||
process.env['INPUT_FAIL-ON-SEVERITY'] = 'CRITICAL'
|
||||
const options = readConfig()
|
||||
expect(options.fail_on_severity).toEqual('critical')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user