Skip to content

Commit a76459a

Browse files
committed
fix naming convention
1 parent 30f7004 commit a76459a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/unit/ReportUtilsTest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15481,12 +15481,12 @@ describe('ReportUtils', () => {
1548115481

1548215482
it('should flag smartscan error when expense report has a missing merchant', async () => {
1548315483
// Replace the transaction with one that has an empty merchant
15484-
const txnMissingMerchant: Transaction = {
15484+
const transactionMissingMerchant: Transaction = {
1548515485
...transaction,
1548615486
merchant: '',
1548715487
modifiedMerchant: '',
1548815488
};
15489-
await Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, txnMissingMerchant);
15489+
await Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, transactionMissingMerchant);
1549015490
await waitForBatchedUpdates();
1549115491

1549215492
const reportsCollection = {
@@ -15507,13 +15507,13 @@ describe('ReportUtils', () => {
1550715507
};
1550815508

1550915509
// Even with missing merchant, a settled report should not show error
15510-
const txnMissingMerchant: Transaction = {
15510+
const transactionMissingMerchant: Transaction = {
1551115511
...transaction,
1551215512
merchant: '',
1551315513
modifiedMerchant: '',
1551415514
};
1551515515
// isSettled reads from the global allReports Onyx store, so we must persist the settled status there
15516-
await Onyx.set(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, txnMissingMerchant);
15516+
await Onyx.set(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`, transactionMissingMerchant);
1551715517
await Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${expenseReportID}`, settledExpenseReport);
1551815518
await waitForBatchedUpdates();
1551915519

0 commit comments

Comments
 (0)