Make `auth` property on `GitHubApiDetails` optional · github/codeql-action@a243813 · GitHub
Skip to content

Commit a243813

Browse files
committed
Make auth property on GitHubApiDetails optional
1 parent e062530 commit a243813

4 files changed

Lines changed: 41 additions & 38 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/api-client.ts‎

Lines changed: 19 additions & 16 deletions

‎src/codeql.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function mockReleaseApi({
126126
});
127127
}
128128

129-
function mockApiDetails(apiDetails: GitHubApiDetails) {
129+
function mockApiDetails(apiDetails: Required<GitHubApiDetails>) {
130130
// This is a workaround to mock `api.getApiDetails()` since it doesn't seem to be possible to
131131
// mock this directly. The difficulty is that `getApiDetails()` is called locally in
132132
// `api-client.ts`, but `sinon.stub(api, "getApiDetails")` only affects calls to

‎src/github.ts‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)