Skip to content

Commit

Permalink
Move test out of failing block.
Browse files Browse the repository at this point in the history
  • Loading branch information
febuiles committed Nov 15, 2022
1 parent ac059c6 commit b8e622f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions __tests__/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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'])
})
})

0 comments on commit b8e622f

Please sign in to comment.