Skip to content

Commit

Permalink
test: fix getFilesPath new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Jan 11, 2025
1 parent 80a08af commit 39cb93c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions __tests__/unit/lib/adapter/GitAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ describe('GitAdapter', () => {
describe('getFilesPath', () => {
it('calls raw', async () => {
// Arrange
const gitAdapter = GitAdapter.getInstance(config)
const gitAdapter = GitAdapter.getInstance({ ...config, to: 'test' })
mockedRaw.mockResolvedValue('' as never)

// Act
Expand All @@ -271,7 +271,7 @@ describe('GitAdapter', () => {
'ls-tree',
'--name-only',
'-r',
config.to,
'test',
config.source,
])
})
Expand All @@ -289,7 +289,7 @@ describe('GitAdapter', () => {
'ls-tree',
'--name-only',
'-r',
config.to,
'HEAD',
'.',
])
})
Expand All @@ -316,7 +316,7 @@ describe('GitAdapter', () => {
'ls-tree',
'--name-only',
'-r',
config.to,
'HEAD',
config.source,
])
})
Expand All @@ -343,7 +343,7 @@ describe('GitAdapter', () => {
'ls-tree',
'--name-only',
'-r',
config.to,
'HEAD',
'path',
])
})
Expand Down

0 comments on commit 39cb93c

Please sign in to comment.