Skip to content

Commit

Permalink
Make green
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Mar 24, 2017
1 parent fe0f8b2 commit d91fc30
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/platforms/github/_tests/_GitHubAPI.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ describe("Peril", () => {
api.additionalHeaders = { "CUSTOM": "HEADER" }

const request = await api.get("user")
expect(request.headers).toEqual({
Authorization: "token ABCDE",
expect(api.fetch).toHaveBeenCalledWith("https://api.github.com/user",
{"body": {}, "headers": {
"Authorization": "token ABCDE",
"CUSTOM": "HEADER",
"Content-Type": "application/json",
})
"Content-Type": "application/json"
}, "method": "GET"}
)
})
})

0 comments on commit d91fc30

Please sign in to comment.