From 48253e69bcac9625c4236aaedc3c3a7f81cfbfaa Mon Sep 17 00:00:00 2001 From: Patrick Taylor Date: Wed, 24 Jul 2024 18:08:58 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20unit=20tests=20=F0=9F=9A=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/sourceFiles.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__tests__/sourceFiles.spec.ts b/src/__tests__/sourceFiles.spec.ts index 9f19689..928a1c7 100644 --- a/src/__tests__/sourceFiles.spec.ts +++ b/src/__tests__/sourceFiles.spec.ts @@ -23,7 +23,7 @@ describe('sourceFiles', () => { const files = await sourceFiles(commonArgs) - expect(glob).toHaveBeenCalledWith('*.ts', { ignore: 'node_modules' }) + expect(glob).toHaveBeenCalledWith(['*.ts'], { ignore: [ 'node_modules' ] }) expect(files).toEqual([]) expect(colourLog.configDebug).toHaveBeenCalledWith('Sourced 0 files matching "*.ts" for ESLint:', []) }) @@ -35,7 +35,7 @@ describe('sourceFiles', () => { const files = await sourceFiles(commonArgs) - expect(glob).toHaveBeenCalledWith('*.ts', { ignore: 'node_modules' }) + expect(glob).toHaveBeenCalledWith(['*.ts'], { ignore: [ 'node_modules' ] }) expect(files).toEqual(mockedFiles) expect(colourLog.configDebug).toHaveBeenCalledWith('Sourced 1 file matching "*.ts" for ESLint:', mockedFiles) }) @@ -47,7 +47,7 @@ describe('sourceFiles', () => { const files = await sourceFiles(commonArgs) - expect(glob).toHaveBeenCalledWith('*.ts', { ignore: 'node_modules' }) + expect(glob).toHaveBeenCalledWith(['*.ts'], { ignore: [ 'node_modules' ] }) expect(files).toEqual(mockedFiles) expect(colourLog.configDebug).toHaveBeenCalledWith('Sourced 2 files matching "*.ts" for ESLint:', mockedFiles) })