Skip to content

Commit

Permalink
Sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
roryf committed Oct 26, 2023
1 parent 50ce510 commit c19f5c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/src/Services/auth/AuthProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,6 @@ describe('AuthProvider', () => {
})

describe('blockUntilInitialised', () => {
beforeEach(() => {
jest.useFakeTimers()
})

afterEach(() => {
jest.useRealTimers()
})

test('only renders children after initialisation', async () => {
mockAuthClient.getCurrentUser.mockResolvedValue(undefined)
const blockingWrapper = ({ children }: { children: ReactNode }) => (
Expand All @@ -274,6 +266,6 @@ describe('AuthProvider', () => {
await waitFor(() =>
expect(queryByText('Authentication test')).toBeTruthy(),
)
}, 20000)
}, 10000)
})
})

0 comments on commit c19f5c9

Please sign in to comment.