diff --git a/__tests__/config.test.ts b/__tests__/config.test.ts index 24940f001..b90232339 100644 --- a/__tests__/config.test.ts +++ b/__tests__/config.test.ts @@ -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']) - }) })