From ff46a4b16e6aebf1291de032051ca65b69a92830 Mon Sep 17 00:00:00 2001 From: Federico Builes Date: Thu, 6 Apr 2023 17:11:29 +0200 Subject: [PATCH] Fixing failing test. --- __tests__/external-config.test.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/__tests__/external-config.test.ts b/__tests__/external-config.test.ts index a8b3839..9da90b3 100644 --- a/__tests__/external-config.test.ts +++ b/__tests__/external-config.test.ts @@ -132,15 +132,8 @@ test('it reads a config file hosted in another repo', async () => { ) setInput('external-repo-token', 'gh_viptoken') - setInput( - 'config-file', - 'future-funk/anyone-cualkiera/external-config.yml@main' - ) + const config = await readConfig() - setInput('external-repo-token', 'gh_viptoken') - - const config = await Config.readConfig() - - expect(config.fail_on_severity).toEqual('critical') - expect(config.allow_licenses).toEqual(['BSD', 'GPL 2']) + expect(config.fail_on_severity).toEqual('high') + expect(config.allow_licenses).toEqual(['GPL-2.0-only']) })