From 68164850d60d83cf30137b55c8dc114488e92b10 Mon Sep 17 00:00:00 2001 From: Lars Waage <46653859+larwaa@users.noreply.github.com> Date: Thu, 21 Mar 2024 11:26:52 +0100 Subject: [PATCH] chore: capitalize sameSite --- src/services/auth/__tests__/integration/plugin.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/auth/__tests__/integration/plugin.test.ts b/src/services/auth/__tests__/integration/plugin.test.ts index 46c85cf1..8b531782 100644 --- a/src/services/auth/__tests__/integration/plugin.test.ts +++ b/src/services/auth/__tests__/integration/plugin.test.ts @@ -3,6 +3,7 @@ import type { IncomingMessage } from "node:http"; import { faker } from "@faker-js/faker"; import type { FastifyInstance, InjectOptions } from "fastify"; import { mock } from "jest-mock-extended"; +import { capitalize } from "lodash-es"; import type { UserinfoResponse } from "openid-client"; import { makeTestServices } from "~/__tests__/dependencies-factory.js"; import type { MockOpenIdClient } from "~/__tests__/mocks/openIdClient.js"; @@ -47,7 +48,7 @@ describe("AuthPlugin", () => { value: expect.any(String), path: "/", httpOnly: env.SESSION_COOKIE_HTTP_ONLY, - sameSite: env.SESSION_COOKIE_SAME_SITE, + sameSite: capitalize(env.SESSION_COOKIE_SAME_SITE), expires: expect.any(Date), }); });