Skip to content

Commit

Permalink
Fix one more error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Jun 25, 2024
1 parent 99cffb5 commit bfb7032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/perf-test/ReportScreen.perf-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ beforeEach(() => {
mockListener.remove.mockClear();

// Mock the implementation of addEventListener to return the mockListener
(Dimensions.addEventListener as jest.Mock).mockImplementation((event, callback) => {
(Dimensions.addEventListener as jest.Mock).mockImplementation((event: string, callback: () => void) => {
if (event === 'change') {
mockListener.callback = callback;
return mockListener;
Expand Down

0 comments on commit bfb7032

Please sign in to comment.