Skip to content

Commit 2ec8e66

Browse files
authored
Merge pull request Expensify#92291 from Expensify/claude-fixBillableActionsTestArg
Fix MoneyRequestTest broken on main after SubscriptionUtils refactor
2 parents eebaca2 + d363437 commit 2ec8e66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/actions/IOU/MoneyRequestTest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jest.mock('@src/libs/Navigation/Navigation', () => ({
5353
goBack: jest.fn(),
5454
}));
5555

56-
// Pass-through spy so behavior is unchanged but the call args (incl. currentUserAccountID) are assertable.
56+
// Pass-through spy so behavior is unchanged but the call args (incl. currentUserAccountID) can be asserted.
5757
jest.mock('@libs/shouldUseDefaultExpensePolicy', () => {
5858
const actual = jest.requireActual<{default: typeof shouldUseDefaultExpensePolicy}>('@libs/shouldUseDefaultExpensePolicy');
5959
return {
@@ -66,7 +66,7 @@ jest.mock('@libs/getCurrentPosition');
6666

6767
// Fire executeWrite synchronously so downstream writes can be asserted.
6868
jest.mock('@libs/Navigation/helpers/submitWithDismissFirst', () => jest.requireActual<typeof SubmitWithDismissFirstMock>('../../__mocks__/submitWithDismissFirst'));
69-
// Cleanup helpers are spies so the move-from-track cleanup-id contract is assertable.
69+
// Cleanup helpers are spies so the move-from-track cleanup-id contract can be asserted.
7070
const mockCleanupAndNavigateAfterExpenseCreate = jest.fn();
7171
const mockCleanupAfterExpenseCreate = jest.fn();
7272
jest.mock('@libs/Navigation/helpers/cleanupAndNavigateAfterExpenseCreate', () => ({
@@ -1299,7 +1299,7 @@ describe('MoneyRequest', () => {
12991299
await Onyx.set(ONYXKEYS.SESSION, {accountID: TEST_USER_ACCOUNT_ID});
13001300
await Onyx.set(`${ONYXKEYS.COLLECTION.POLICY}${policy.id}`, policy);
13011301

1302-
expect(shouldUseDefaultExpensePolicy(CONST.IOU.TYPE.CREATE, policy, 100, undefined, pastDate)).toBe(false);
1302+
expect(shouldUseDefaultExpensePolicy(CONST.IOU.TYPE.CREATE, policy, 100, undefined, pastDate, TEST_USER_ACCOUNT_ID)).toBe(false);
13031303

13041304
await Onyx.clear();
13051305
});

0 commit comments

Comments
 (0)