Move test out of failing block.

This commit is contained in:
Federico Builes
2022-11-15 22:33:31 +01:00
parent ac059c649c
commit b8e622f102
+10 -10
View File
@@ -232,6 +232,16 @@ test('it is not possible to disable both checks', async () => {
)
})
test('it supports comma-separated lists', async () => {
setInput(
'config-file',
'./__tests__/fixtures/inline-license-config-sample.yml'
)
let config = await readConfig()
expect(config.allow_licenses).toEqual(['MIT', 'GPL-2.0-only'])
})
describe('licenses that are not valid SPDX licenses', () => {
beforeAll(() => {
jest.spyOn(Utils, 'isSPDXValid').mockReturnValue(false)
@@ -250,14 +260,4 @@ describe('licenses that are not valid SPDX licenses', () => {
'Invalid license(s) in deny-licenses: BSD,GPL 2'
)
})
test('it supports comma-separated license lists', async () => {
setInput(
'config-file',
'./__tests__/fixtures/inline-license-config-sample.yml'
)
let config = await readConfig()
expect(config.allow_licenses).toEqual(['BSD', 'GPL 2'])
})
})