Skip to content

Commit

Permalink
Fixed unit tests 🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jul 24, 2024
1 parent 398b801 commit 48253e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/sourceFiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:', [])
})
Expand All @@ -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)
})
Expand All @@ -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)
})
Expand Down

0 comments on commit 48253e6

Please sign in to comment.