From ba127cac5e69442ffe353a974a4ed1414fdc2156 Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Tue, 15 Nov 2022 22:25:26 +0100 Subject: [PATCH] Adding a test to confirm lists work properly in config files. --- __tests__/config.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/__tests__/config.test.ts b/__tests__/config.test.ts index 25c7e28..af606b3 100644 --- a/__tests__/config.test.ts +++ b/__tests__/config.test.ts @@ -250,4 +250,14 @@ 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']) + }) })