Skip to content

Commit

Permalink
slight cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eokoneyo committed Nov 25, 2024
1 parent aa16f00 commit c6aa700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ describe('useLatencyCorrelations', () => {
});

try {
jest.advanceTimersByTime(150);
act(() => {
jest.advanceTimersByTime(150);
});
await waitFor(() =>
expect(result.current.progress).toEqual({
error: 'Something went wrong',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ function wrapper({ children }: React.PropsWithChildren) {
}

describe('useFetcher', () => {
// beforeAll(() => {

// jest.useFakeTimers();
// });

// afterAll(() => {
// jest.useRealTimers();
// });

describe('when resolving after 500ms', () => {
let hook: RenderHookResult<ReturnType<typeof useFetcher>, Parameters<typeof useFetcher>>;

Expand Down

0 comments on commit c6aa700

Please sign in to comment.