Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 3058034

Browse files
committed
adding mock tests
1 parent 3b47430 commit 3058034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lint.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ beforeEach(() => {
1616
app(robot)
1717
// Mock GitHub client
1818
github = {
19-
issues: { createComment: jest.fn() },
19+
issues: { createComment: jest.fn(), editComment: jest.fn(),
20+
getComments: jest.fn().mockReturnValue({ data:[ { id: 1,user: { login: 'bot', id: 2, type: 'Bot', },} ] }) },
2021
repos: { createStatus: jest.fn() },
2122
pullRequests: {
2223
getCommits: jest

0 commit comments

Comments
 (0)