Skip to content

Commit

Permalink
refactor: updated variable name to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheksharmayt committed Nov 5, 2024
1 parent a322290 commit 18a38fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __tests__/Goals/components/Create-Goals-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ describe('MainScreen', () => {
);
});

spyAlert.mock.calls?.[0]?.[2]?.[0].onPress!();
const alertMockCall = spyAlert.mock.calls?.[0]?.[2]?.[0];
alertMockCall?.onPress!();

expect(navigationProp.navigate).toHaveBeenCalledWith('GoalsScreen');
});
});

0 comments on commit 18a38fe

Please sign in to comment.