Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"lint-staged": "^16.2.7",
"mjml-browser": "^4.18.0",
"patch-package": "^8.0.1",
"prettier": "3.6.2",
"prettier": "3.8.1",
"sass": "^1.97.3",
"storybook": "^10.1.11",
"stylelint": "^17.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export type UserDashboardState =
| "NonEligiblePremiumUserResolvedBreaches"
| "InvalidUserState";

interface ContentConditionProps
extends Omit<ContentProps, "relevantGuidedStep" | "onShowFixed"> {
interface ContentConditionProps extends Omit<
ContentProps,
"relevantGuidedStep" | "onShowFixed"
> {
isRelevantGuidedStep: boolean;
}

Expand Down
30 changes: 12 additions & 18 deletions src/app/functions/server/getExperimentationId.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ describe("getExperimentationId", () => {
const configModule = jest.requireMock("../../../config") as any;
configModule.config.nimbusUuidNamespace =
"00000000-0000-0000-0000-000000000000";
const { getExperimentationIdFromSubscriber } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromSubscriber } =
await import("./getExperimentationId");

const result = await getExperimentationIdFromSubscriber({
id: 42,
Expand All @@ -67,9 +66,8 @@ describe("getExperimentationId", () => {
const configModule = jest.requireMock("../../../config") as any;
configModule.config.nimbusUuidNamespace =
"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
const { getExperimentationIdFromUserSession } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromUserSession } =
await import("./getExperimentationId");

const user = { subscriber: { id: 42 } };
const result = await getExperimentationIdFromUserSession(
Expand All @@ -89,9 +87,8 @@ describe("getExperimentationId", () => {
headers: async () => new Headers([["x-experimentation-id", "guest-123"]]),
});

const { getExperimentationIdFromUserSession } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromUserSession } =
await import("./getExperimentationId");

const result = await getExperimentationIdFromUserSession(null);

Expand All @@ -107,9 +104,8 @@ describe("getExperimentationId", () => {
headers: async () => new Headers([["x-other-id", "value-123"]]),
});

const { getExperimentationIdFromUserSession } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromUserSession } =
await import("./getExperimentationId");

const result = await getExperimentationIdFromUserSession(null);
expect(result).toBe(
Expand All @@ -121,9 +117,8 @@ describe("getExperimentationId", () => {
it("logs info and returns undefined if loadNextHeaders returns null", async () => {
loadNextHeadersMock.mockResolvedValue(null);

const { getExperimentationIdFromUserSession } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromUserSession } =
await import("./getExperimentationId");

const result = await getExperimentationIdFromUserSession(null);
expect(result).toBeUndefined();
Expand All @@ -138,9 +133,8 @@ describe("getExperimentationId", () => {
throw new Error("import failed");
});

const { getExperimentationIdFromUserSession } = await import(
"./getExperimentationId"
);
const { getExperimentationIdFromUserSession } =
await import("./getExperimentationId");

const result = await getExperimentationIdFromUserSession(null);
expect(result).toBeUndefined();
Expand Down
Loading