Skip to content

Commit

Permalink
chore: capitalize sameSite
Browse files Browse the repository at this point in the history
  • Loading branch information
larwaa committed Mar 21, 2024
1 parent 386302d commit 6816485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/auth/__tests__/integration/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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),
});
});
Expand Down

0 comments on commit 6816485

Please sign in to comment.