Skip to content

Commit edd4865

Browse files
committed
tests failing
1 parent 2ec4df0 commit edd4865

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/shared/utils/upgradeForm.test.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ describe('extractSeats', () => {
468468
activatedUserCount: 12,
469469
inactiveUserCount: 0,
470470
isSentryUpgrade: false,
471-
isFreePlan: false,
472471
})
473472
expect(seats).toEqual(8)
474473
})
@@ -552,9 +551,8 @@ describe('shouldRenderCancelLink', () => {
552551
// eslint-disable-next-line testing-library/render-result-naming-convention
553552
const value = shouldRenderCancelLink({
554553
cancelAtPeriodEnd: false,
555-
plan: { value: Plans.USERS_PR_INAPPY } as PlanData,
554+
plan: { value: Plans.USERS_PR_INAPPY, isFreePlan: false } as PlanData,
556555
trialStatus: TrialStatuses.NOT_STARTED,
557-
isFreePlan: false,
558556
})
559557

560558
expect(value).toBeTruthy()
@@ -565,9 +563,8 @@ describe('shouldRenderCancelLink', () => {
565563
// eslint-disable-next-line testing-library/render-result-naming-convention
566564
const cancelLinkResult = shouldRenderCancelLink({
567565
cancelAtPeriodEnd: false,
568-
plan: { value: Plans.USERS_BASIC } as PlanData,
566+
plan: { value: Plans.USERS_BASIC, isFreePlan: true } as PlanData,
569567
trialStatus: TrialStatuses.NOT_STARTED,
570-
isFreePlan: true,
571568
})
572569

573570
expect(cancelLinkResult).toBeFalsy()
@@ -579,9 +576,8 @@ describe('shouldRenderCancelLink', () => {
579576
// eslint-disable-next-line testing-library/render-result-naming-convention
580577
const cancelLinkResult = shouldRenderCancelLink({
581578
cancelAtPeriodEnd: false,
582-
plan: { value: Plans.USERS_TRIAL } as PlanData,
579+
plan: { value: Plans.USERS_TRIAL, isFreePlan: false } as PlanData,
583580
trialStatus: TrialStatuses.ONGOING,
584-
isFreePlan: false,
585581
})
586582

587583
expect(cancelLinkResult).toBeFalsy()
@@ -593,9 +589,8 @@ describe('shouldRenderCancelLink', () => {
593589
// eslint-disable-next-line testing-library/render-result-naming-convention
594590
const cancelLinkResult = shouldRenderCancelLink({
595591
cancelAtPeriodEnd: true,
596-
plan: { value: Plans.USERS_PR_INAPPY } as PlanData,
592+
plan: { value: Plans.USERS_PR_INAPPY, isFreePlan: false } as PlanData,
597593
trialStatus: TrialStatuses.NOT_STARTED,
598-
isFreePlan: false,
599594
})
600595

601596
expect(cancelLinkResult).toBeFalsy()

0 commit comments

Comments
 (0)