Skip to content

Commit 6753655

Browse files
committed
fix: TypeScript errors in P2P Wallet Activation tests
1 parent 1e9cbb9 commit 6753655

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

tests/unit/ReportUtilsTest.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10533,13 +10533,14 @@ describe('ReportUtils', () => {
1053310533
// Verify GBR shows in LHN
1053410534
const reason = reasonForReportToBeInOptionList({
1053510535
report: chatReport,
10536+
chatReport,
1053610537
currentReportId: '',
1053710538
isInFocusMode: false,
1053810539
betas: [CONST.BETAS.DEFAULT_ROOMS],
1053910540
doesReportHaveViolations: false,
1054010541
excludeEmptyChats: false,
10541-
policies: {},
1054210542
isReportArchived: false,
10543+
draftComment: '',
1054310544
});
1054410545
expect(reason).toBe(CONST.REPORT_IN_LHN_REASONS.HAS_GBR);
1054510546

@@ -10599,13 +10600,14 @@ describe('ReportUtils', () => {
1059910600
// Verify GBR shows
1060010601
const reason = reasonForReportToBeInOptionList({
1060110602
report: chatReport,
10603+
chatReport,
1060210604
currentReportId: '',
1060310605
isInFocusMode: false,
1060410606
betas: [CONST.BETAS.DEFAULT_ROOMS],
1060510607
doesReportHaveViolations: false,
1060610608
excludeEmptyChats: false,
10607-
policies: {},
1060810609
isReportArchived: false,
10610+
draftComment: '',
1060910611
});
1061010612
expect(reason).toBe(CONST.REPORT_IN_LHN_REASONS.HAS_GBR);
1061110613

@@ -10669,13 +10671,14 @@ describe('ReportUtils', () => {
1066910671
// Verify GBR does NOT show (no outstanding request for GOLD user)
1067010672
const reason = reasonForReportToBeInOptionList({
1067110673
report: chatReport,
10674+
chatReport,
1067210675
currentReportId: '',
1067310676
isInFocusMode: false,
1067410677
betas: [CONST.BETAS.DEFAULT_ROOMS],
1067510678
doesReportHaveViolations: false,
1067610679
excludeEmptyChats: false,
10677-
policies: {},
1067810680
isReportArchived: false,
10681+
draftComment: '',
1067910682
});
1068010683
expect(reason).not.toBe(CONST.REPORT_IN_LHN_REASONS.HAS_GBR);
1068110684

@@ -10738,13 +10741,14 @@ describe('ReportUtils', () => {
1073810741
// GBR may still show (hasOutstandingChildRequest: true) but for different reason
1073910742
const reason = reasonForReportToBeInOptionList({
1074010743
report: chatReport,
10744+
chatReport,
1074110745
currentReportId: '',
1074210746
isInFocusMode: false,
1074310747
betas: [CONST.BETAS.DEFAULT_ROOMS],
1074410748
doesReportHaveViolations: false,
1074510749
excludeEmptyChats: false,
10746-
policies: {},
1074710750
isReportArchived: false,
10751+
draftComment: '',
1074810752
});
1074910753
expect(reason).toBe(CONST.REPORT_IN_LHN_REASONS.HAS_GBR);
1075010754

0 commit comments

Comments
 (0)