From d368d94a688a9fad44bcc644349205047f8375ee Mon Sep 17 00:00:00 2001 From: Lucie <25330882+lihbr@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:49:21 +0200 Subject: [PATCH] Update test/buildQueryURL.test.ts Co-authored-by: Angelo Ashmore --- test/buildQueryURL.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/buildQueryURL.test.ts b/test/buildQueryURL.test.ts index f12e0663..4fc5d2b8 100644 --- a/test/buildQueryURL.test.ts +++ b/test/buildQueryURL.test.ts @@ -256,13 +256,13 @@ it("supports array routes param", () => { ) }) -it("forwards `x-c` header in production", () => { +it("forwards `x-c` param in production", () => { expect(prismic.buildQueryURL(endpoint, { ref: "ref" })).toBe( `https://qwerty.cdn.prismic.io/api/v2/documents/search?ref=ref${xClientVersionParam}`, ) }) -it("forwards `x-c` and `x-d` headers in development", () => { +it("forwards `x-c` and `x-d` param in development", () => { const originalEnv = { ...process.env } process.env.NODE_ENV = "development"