From 44414dbc7d9734f29bd24f3cb8d6c986953b2854 Mon Sep 17 00:00:00 2001 From: Alexander Kachkaev Date: Wed, 31 May 2023 01:50:00 +0100 Subject: [PATCH] Fix tests --- __tests__/main.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 1c49c2ab..2e5bb190 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -23,7 +23,7 @@ const configureInput = ( 'repo-token': string; 'configuration-path': string; 'sync-labels': boolean; - dot: string; + dot: boolean; }> ) => { jest @@ -55,7 +55,7 @@ describe('run', () => { }); it('(with dot: true) adds labels to PRs that match our glob patterns', async () => { - configureInput({dot: 'true'}); + configureInput({dot: true}); usingLabelerConfigYaml('only_pdfs.yml'); mockGitHubResponseChangedFiles('.foo.pdf'); @@ -83,7 +83,7 @@ describe('run', () => { }); it('(with dot: true) does not add labels to PRs that do not match our glob patterns', async () => { - configureInput({dot: 'true'}); + configureInput({dot: true}); usingLabelerConfigYaml('only_pdfs.yml'); mockGitHubResponseChangedFiles('foo.txt');