Skip to content

Commit 25dcd2a

Browse files
committed
ts fix
1 parent 8ce85dd commit 25dcd2a

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

tests/unit/DebugUtilsTest.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,17 +1592,17 @@ describe('DebugUtils', () => {
15921592
});
15931593
it('forwards isOffline through to SidebarUtils so the live IOU transaction-thread receipt error surfaces only when isOffline=false excludes the deleted pending-delete action', () => {
15941594
// Given: an expense report with two IOU actions — one live (with a receipt-errored transaction) and one deleted-with-pending-delete.
1595-
const ISOFFLINE_EXPENSE_REPORT: Report = {
1595+
const OFFLINE_EXPENSE_REPORT: Report = {
15961596
reportID: '1',
15971597
type: CONST.REPORT.TYPE.EXPENSE,
15981598
chatReportID: '2',
15991599
};
1600-
const ISOFFLINE_CHAT_REPORT: Report = {
1600+
const OFFLINE_CHAT_REPORT: Report = {
16011601
reportID: '2',
16021602
};
16031603
const liveTransactionID = 'tx-debug-live';
16041604
const deletedTransactionID = 'tx-debug-deleted';
1605-
const ISOFFLINE_REPORT_ACTIONS: OnyxEntry<ReportActions> = {
1605+
const OFFLINE_REPORT_ACTIONS: OnyxEntry<ReportActions> = {
16061606
// eslint-disable-next-line @typescript-eslint/naming-convention
16071607
'1': {
16081608
reportActionID: '1',
@@ -1633,7 +1633,7 @@ describe('DebugUtils', () => {
16331633
},
16341634
} as ReportAction,
16351635
};
1636-
const ISOFFLINE_TRANSACTIONS: OnyxCollection<Transaction> = {
1636+
const OFFLINE_TRANSACTIONS: OnyxCollection<Transaction> = {
16371637
[`${ONYXKEYS.COLLECTION.TRANSACTION}${liveTransactionID}`]: {
16381638
transactionID: liveTransactionID,
16391639
amount: 10,
@@ -1648,20 +1648,20 @@ describe('DebugUtils', () => {
16481648
};
16491649

16501650
const offline = DebugUtils.getReasonAndReportActionForRBRInLHNRow(
1651-
ISOFFLINE_EXPENSE_REPORT,
1652-
ISOFFLINE_CHAT_REPORT,
1653-
ISOFFLINE_REPORT_ACTIONS,
1654-
ISOFFLINE_TRANSACTIONS,
1651+
OFFLINE_EXPENSE_REPORT,
1652+
OFFLINE_CHAT_REPORT,
1653+
OFFLINE_REPORT_ACTIONS,
1654+
OFFLINE_TRANSACTIONS,
16551655
{},
16561656
false,
16571657
{},
16581658
true,
16591659
);
16601660
const online = DebugUtils.getReasonAndReportActionForRBRInLHNRow(
1661-
ISOFFLINE_EXPENSE_REPORT,
1662-
ISOFFLINE_CHAT_REPORT,
1663-
ISOFFLINE_REPORT_ACTIONS,
1664-
ISOFFLINE_TRANSACTIONS,
1661+
OFFLINE_EXPENSE_REPORT,
1662+
OFFLINE_CHAT_REPORT,
1663+
OFFLINE_REPORT_ACTIONS,
1664+
OFFLINE_TRANSACTIONS,
16651665
{},
16661666
false,
16671667
{},

tests/unit/OnyxDerivedTest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ describe('OnyxDerived', () => {
126126
const transaction = createRandomTransaction(1);
127127

128128
// When the report attributes are recomputed with both report and transaction updates
129-
reportAttributes.compute([reports, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined], {});
129+
reportAttributes.compute([reports, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined], {});
130130
const reportAttributesComputedValue = reportAttributes.compute(
131-
[reports, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined],
131+
[reports, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined],
132132
{
133133
sourceValues: {
134134
[ONYXKEYS.COLLECTION.REPORT]: {

0 commit comments

Comments
 (0)