mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
9 lines
230 B
JavaScript
9 lines
230 B
JavaScript
import { waitUntil } from '../utils'
|
|
|
|
describe('utils', () => {
|
|
test('waitUntil', async () => {
|
|
expect(await waitUntil(() => true, 0.1, 100)).toBe(false)
|
|
expect(await waitUntil(() => false, 0.1, 100)).toBe(true)
|
|
})
|
|
})
|