Skip to content

Commit

Permalink
Properly send response status of 204 for persistence test
Browse files Browse the repository at this point in the history
For some reason, the prior method of constructing a Response
was having a status code of 200.
  • Loading branch information
zpencerq committed Jul 11, 2019
1 parent 1ba38c0 commit 16fe751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/persistence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ describe("Model persistence", () => {

fetchMock.mock({
matcher: "http://example.com/api/v1/people/1",
response: new Response({ status: 204 } as any)
response: { status: 204 }
})
})

Expand Down

0 comments on commit 16fe751

Please sign in to comment.