Skip to content

Commit

Permalink
Update test/buildQueryURL.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Angelo Ashmore <angeloashmore@users.noreply.github.com>
  • Loading branch information
lihbr and angeloashmore authored Sep 17, 2024
1 parent 4ff2bde commit d368d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/buildQueryURL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d368d94

Please sign in to comment.