Don't set the defaults in the test :/

This commit is contained in:
Federico Builes
2022-06-14 07:04:26 +02:00
parent efecf6fd09
commit ef97470a0f
2 changed files with 13 additions and 15 deletions
+1 -2
View File
@@ -4,14 +4,13 @@ import {readConfig} from '../src/config'
beforeEach(() => {
/* reset to our defaults after every test run */
process.env['INPUT_FAIL-ON-SEVERITY'] = 'low'
delete process.env['INPUT_FAIL-ON-SEVERITY']
delete process.env['INPUT_ALLOWED-LICENSES']
delete process.env['INPUT_DENY-LICENSES']
})
test('it defaults to low severity', async () => {
let options = readConfig()
expect(options.fail_on_severity).toEqual('low')
})