Skip to content

Commit 16d5ab3

Browse files
committed
Fix another test
1 parent e602170 commit 16d5ab3

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/actions/IOU/TrackExpense.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,7 @@ function trackExpense(params: CreateTrackExpenseParams) {
25042504
policyParams,
25052505
createdWorkspaceParams,
25062506
currentUserAccountID: currentUserAccountIDParam,
2507+
currentUserEmail: currentUserEmailParam,
25072508
};
25082509

25092510
categorizeTrackedExpense(trackedExpenseParams);

tests/unit/GoogleTagManagerTest.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ describe('GoogleTagManagerTest', () => {
203203
});
204204

205205
test('workspace_created - categorizeTrackedExpense', async () => {
206+
await act(async () => {
207+
await Onyx.set(ONYXKEYS.SESSION, {accountID, email});
208+
});
209+
206210
const recentWaypoints = (await getOnyxValue(ONYXKEYS.NVP_RECENT_WAYPOINTS)) ?? [];
207211

208212
trackExpense({

0 commit comments

Comments
 (0)