(query, variables)
| 76 | }, |
| 77 | }, |
| 78 | async graphql(query, variables) { |
| 79 | assert.ok(query.includes("commits(first: 100, after: $cursor)")); |
| 80 | assert.ok(!query.includes("body")); |
| 81 | assert.deepStrictEqual( |
| 82 | { owner: variables.owner, repo: variables.repo, number: variables.number }, |
| 83 | VARIABLES |
| 84 | ); |
| 85 | calls.push(variables); |
| 86 | assert.ok(calls.length <= pages.length, "unexpected API call"); |
| 87 | const response = pages[calls.length - 1]; |
| 88 | if (response instanceof Error) throw response; |
| 89 | return response; |
| 90 | }, |
| 91 | }; |
| 92 | } |
| 93 |
nothing calls this directly
no outgoing calls
no test coverage detected