Skip to content

Commit

Permalink
fix test: getDangerCommentIDs ignores comments not marked as generated
Browse files Browse the repository at this point in the history
  • Loading branch information
kfbustam committed Dec 9, 2024
1 parent da193bd commit 0ccee7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/platforms/github/_tests/_github_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ new file mode 0

it("getDangerCommentIDs ignores comments not marked as generated", async () => {
api.getAllOfResource = await requestWithFixturedJSON("github_inline_comments_with_danger.json")
api.getUserID = () => new Promise<number>((r) => r(20229914))
api.fetch = jest.fn().mockReturnValue({ ok: true })
api.getPullRequestInfo = await requestWithFixturedJSON("github_pr.json")

const commentIDs = await api.getDangerCommentIDs("default")

Expand Down

0 comments on commit 0ccee7f

Please sign in to comment.