Skip to content

Commit 0626347

Browse files
committed
Fix branch name in main test
1 parent 9972c81 commit 0626347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ test('if there are multiple dependencies, it summarizes them', async () => {
415415
const mockAlert = { alertState: '', ghsaId: '', cvss: 0 }
416416

417417
jest.spyOn(core, 'getInput').mockReturnValue('mock-token')
418-
jest.spyOn(util, 'getBranchNames').mockReturnValue({ headName: 'dependabot/npm_and_yarn/api/main/feature1', baseName: 'trunk' })
418+
jest.spyOn(util, 'getBranchNames').mockReturnValue({ headName: 'dependabot/npm_and_yarn/api/main/coffee-rails/and/coffeescript', baseName: 'trunk' })
419419
jest.spyOn(dependabotCommits, 'getMessage').mockImplementation(jest.fn(
420420
() => Promise.resolve(mockCommitMessage)
421421
))

0 commit comments

Comments
 (0)