Skip to content

Commit

Permalink
Add thread from manual submit action test
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Oct 3, 2024
1 parent a0e65b3 commit 30be12b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/unit/ReportUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,30 @@ describe('ReportUtils', () => {
});
});
});

describe('ParentReportAction is', () => {
test('Manually Submitted Report Action', () => {
const threadOfSubmittedReportAction = {
...LHNTestUtils.getFakeReport(),
type: CONST.REPORT.TYPE.EXPENSE,
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
statusNum: CONST.REPORT.STATUS_NUM.SUBMITTED,
parentReportID: '101',
policyID: policy.id,
};
const submittedParentReportAction = {
actionName: CONST.REPORT.ACTIONS.TYPE.SUBMITTED,
originalMessage: {
amount: 169,
currency: 'USD',
},
} as ReportAction;

expect(

Check failure on line 292 in tests/unit/ReportUtilsTest.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `⏎····················ReportUtils.getReportName(threadOfSubmittedReportAction,·policy,·submittedParentReportAction),⏎················` with `ReportUtils.getReportName(threadOfSubmittedReportAction,·policy,·submittedParentReportAction)`

Check failure on line 292 in tests/unit/ReportUtilsTest.ts

View workflow job for this annotation

GitHub Actions / ESLint check

Replace `⏎····················ReportUtils.getReportName(threadOfSubmittedReportAction,·policy,·submittedParentReportAction),⏎················` with `ReportUtils.getReportName(threadOfSubmittedReportAction,·policy,·submittedParentReportAction)`
ReportUtils.getReportName(threadOfSubmittedReportAction, policy, submittedParentReportAction),
).toBe('submitted $1.69');
});
});
});

describe('requiresAttentionFromCurrentUser', () => {
Expand Down

0 comments on commit 30be12b

Please sign in to comment.