Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Oct 5, 2020
1 parent 3cb2bb5 commit 3a6fd18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/rig/src/__tests__/github-release.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const getMockReleaseParams = () =>
},
github: {
repos: {
createRelease: jest.fn(),
createRelease: jest.fn().mockResolvedValue({}),
},
},
logger: {
Expand Down Expand Up @@ -51,8 +51,9 @@ test('local', async () => {

await createGitHubRelease(withTags)

expect(withTags.logger?.info).toHaveBeenCalledTimes(1)
expect(withTags.logger?.info).toHaveBeenCalledTimes(2)
expect(withTags.logger?.info).toHaveBeenCalledWith('releasing', [])
expect(withTags.logger?.info).toHaveBeenCalledWith('released', [])
})

test('create release', async () => {
Expand Down

0 comments on commit 3a6fd18

Please sign in to comment.