Add none as option for fail-on-severity

This commit is contained in:
tgrall
2023-03-18 05:21:58 +01:00
parent e3fb5152be
commit 621d03bf3a
7 changed files with 83 additions and 29 deletions
+7
View File
@@ -54,6 +54,13 @@ test('it reads custom configs', async () => {
expect(config.allow_licenses).toEqual(['BSD', 'GPL 2'])
})
test('it defaults to none severity', async () => {
setInput('fail-on-severity', 'none')
const config = await readConfig()
expect(config.fail_on_severity).toEqual('none')
})
test('it defaults to empty allow/deny lists ', async () => {
const config = await readConfig()