Skip to content

Commit

Permalink
Speed up tests. Don't need to timeout that long
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywhy committed Oct 22, 2024
1 parent 9f856ea commit 6420a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/transition_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Transition', () => {
await nextFrame()
expect(target.className.split(' ')).to.have.members(['foo', 'transition-opacity', 'ease-in-out', 'duration-100', 'opacity-0'])

await aTimeout(100)
await aTimeout(0)
expect(target.className.split(' ')).to.have.members(['foo', 'opacity-0', 'hidden'])
})

Expand Down Expand Up @@ -159,7 +159,7 @@ describe('Transition', () => {
await nextFrame()
expect(target.className.split(' ')).to.have.members(['foo', 'transition-opacity', 'ease-in-out', 'duration-100', 'opacity-100'])

await aTimeout(100)
await aTimeout(0)
expect(target.className.split(' ')).to.have.members(['foo', 'opacity-100'])
})

Expand Down

0 comments on commit 6420a2e

Please sign in to comment.