Skip to content

Commit

Permalink
fix: dst issue with frontend unit tests (#14483)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephkmh committed Oct 29, 2024
1 parent ab64c79 commit 7d88645
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ describe("StatusBanner", () => {
mockOrgInfo({ paymentStatus: "uninitialized" });
mockTrialStatus({
trialStatus: "in_trial",
trialEndsAt: dayjs()
.add(5 * 24 + 1, "hours")
.toISOString(),
trialEndsAt: dayjs().add(5, "days").add(1, "hours").toISOString(),
});
mockGeneratedIntent({ canViewTrialStatus: true, canManageOrganizationBilling: false });
const wrapper = await render(<StatusBanner />);
Expand All @@ -181,9 +179,7 @@ describe("StatusBanner", () => {
mockOrgInfo({ paymentStatus: "uninitialized" });
mockTrialStatus({
trialStatus: "in_trial",
trialEndsAt: dayjs()
.add(5 * 24 + 1, "hours")
.toISOString(),
trialEndsAt: dayjs().add(5, "days").add(1, "hours").toISOString(),
});
mockGeneratedIntent({ canViewTrialStatus: true, canManageOrganizationBilling: true });
const wrapper = await render(<StatusBanner />);
Expand Down Expand Up @@ -213,9 +209,7 @@ describe("StatusBanner", () => {
mockOrgInfo({ paymentStatus: "okay" });
mockTrialStatus({
trialStatus: "in_trial",
trialEndsAt: dayjs()
.add(5 * 24 + 1, "hours")
.toISOString(),
trialEndsAt: dayjs().add(5, "days").add(1, "hours").toISOString(),
});
mockGeneratedIntent({ canViewTrialStatus: true, canManageOrganizationBilling: true });
const wrapper = await render(<StatusBanner />);
Expand Down

0 comments on commit 7d88645

Please sign in to comment.