Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Oct 22, 2024
1 parent 7401e77 commit 6afa4c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/v1/providers/https.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ describe("callable CORS", () => {
const response = await runHandler(func, req as any);

expect(response.status).to.equal(200);
expect(response.body).to.be.deep.equal({ result: 42 });
expect(response.body).to.be.deep.equal(JSON.stringify({ result: 42 }));
expect(response.headers).to.deep.equal(expectedResponseHeaders);
});
});
4 changes: 2 additions & 2 deletions spec/v2/providers/https.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ describe("onCall", () => {
req.method = "POST";

const resp = await runHandler(func, req as any);
expect(resp.body).to.deep.equal({ result: 42 });
expect(resp.body).to.deep.equal(JSON.stringify({ result: 42 }));
});

it("should enforce CORS options", async () => {
Expand Down Expand Up @@ -496,7 +496,7 @@ describe("onCall", () => {
const response = await runHandler(func, req as any);

expect(response.status).to.equal(200);
expect(response.body).to.be.deep.equal({ result: 42 });
expect(response.body).to.be.deep.equal(JSON.stringify({ result: 42 }));
expect(response.headers).to.deep.equal(expectedResponseHeaders);
});

Expand Down

0 comments on commit 6afa4c0

Please sign in to comment.