Skip to content

Commit a2d2a87

Browse files
committed
Remove unnecessary comments
1 parent 635a0af commit a2d2a87

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

tests/unit/ReportUtilsTest.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,6 @@ describe('ReportUtils', () => {
304304
const policyID = '2424';
305305
const amount = 39;
306306

307-
/* CREATE an outstanding EXPENSE REPORT
308-
type = expense
309-
TODO: stateNum and statusNum can be less than or equal to CONST.REPORT.STATE_NUM.SUBMITTED
310-
311-
*/
312-
313-
/* CREATE policy
314-
moneyRequestReport?.policyID = policy.id
315-
*/
316307
const policy1 = {...createRandomPolicy(Number(policyID), CONST.POLICY.TYPE.TEAM), areInvoicesEnabled: true, role: CONST.POLICY.ROLE.ADMIN};
317308

318309
// Given that there is atleast one outstanding expense report in a policy
@@ -341,22 +332,8 @@ describe('ReportUtils', () => {
341332
},
342333
};
343334

344-
/* CREATE money request transaction
345-
transaction = allTransaction[reportAction.originalMessage.IOUTransactionID]
346-
moneyRequestReport.reportID = moneyRequestReport.reportID = originalMessage.IOUReportID
347-
moneyRequestTransaction.transactionID = originalMessage.IOUTransactionID
348-
349-
*/
350-
351335
const moneyRequestTransaction = {...createRandomTransaction(Number(IOUTransactionID)), reportID: IOUReportID, transactionID: IOUTransactionID, amount};
352336

353-
/* CREATE money request report (invoice report)
354-
invoiceReport = allReports[reportAction.originalMessage.IOUReportID]
355-
invoiceReport.reportID = originalMessage.IOUReportID
356-
invoiceReport.ownerAccountID = currentUserAccountID
357-
invoioiceReport.policyID = policy.id
358-
*/
359-
360337
const invoiceReport = {
361338
...createInvoiceReport(Number(IOUReportID)),
362339
policyID,
@@ -367,15 +344,6 @@ describe('ReportUtils', () => {
367344
managerID: 8723,
368345
};
369346

370-
/* might not need to add this
371-
add the report action with
372-
hasForwardedAction
373-
*/
374-
375-
/* no need for this
376-
Add reportNameValuePairs in onyx for the oustandingExpenseReport
377-
*/
378-
379347
beforeAll(() => {
380348
Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION}${IOUTransactionID}`, moneyRequestTransaction);
381349
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT}${IOUReportID}`, invoiceReport);

0 commit comments

Comments
 (0)