Skip to content

Commit

Permalink
test: rm fake timer
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Dec 22, 2023
1 parent cfcebad commit a07952e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/dialog/tests/dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ describe('Dialog', () => {
})

test('close on mask click', async () => {
jest.useFakeTimers()

const onClose = jest.fn()
const afterClose = jest.fn()
render(
Expand All @@ -78,9 +76,6 @@ describe('Dialog', () => {
await waitForElementToBeRemoved(mask)
expect(onClose).toBeCalled()
expect(afterClose).toBeCalled()

jest.clearAllTimers()
jest.useRealTimers()
})

test('custom content', async () => {
Expand Down

0 comments on commit a07952e

Please sign in to comment.