Skip to content

Commit

Permalink
test: fix test for empty response with json media type (#654)
Browse files Browse the repository at this point in the history
* test: add test for empty response with json media type

Follow-up to #648

* test: remove duplicate test
  • Loading branch information
wolfy1339 authored Nov 30, 2023
1 parent 02b5723 commit 994980f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,13 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
.sandbox()
.get("path:/repos/octokit-fixture-org/hello-world/contents/README.md", {
status: 500,
body: undefined,
body: "",
headers: {
"content-type": "application/json",
},
});

expect(request).not.toThrow();
return request("GET /repos/{owner}/{repo}/contents/{path}", {
headers: {
accept: "content-type: application/json",
Expand Down

0 comments on commit 994980f

Please sign in to comment.