Skip to content

Commit

Permalink
Update requestId test
Browse files Browse the repository at this point in the history
  • Loading branch information
liamgriffiths committed Jun 5, 2024
1 parent 37bf9be commit 386151c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/SubstrateResponse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe("SubstrateResponse", () => {
expect(sbResponse.requestId).toBeNull();
});

test(".requestId present when present in response", () => {
test(".requestId present when present in request", () => {
// When there is no request-id present in the response headers.
const request = new Request("http://127.0.0.1");
const response = new Response(null, {
headers: { "cf-ray": "REQUEST_ID" },
const request = new Request("http://127.0.0.1", {
headers: { "x-substrate-request-id": "REQUEST_ID" },
});
const response = new Response();
const responseJSON = {};
const sbResponse = new SubstrateResponse(request, response, responseJSON);

Expand Down

0 comments on commit 386151c

Please sign in to comment.