Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 75ac164

Browse files
newnewbz0al
authored andcommitted
test: adding mock tests
1 parent 7a08ba1 commit 75ac164

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎test/lint.test.js‎

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /