Nuxt/test/unit/utils.test.js

9 lines
230 B
JavaScript
Raw Normal View History

2018-10-24 13:53:34 +00:00
import { waitUntil } from '../utils'
2016-12-10 09:57:50 +00:00
2018-03-18 19:31:32 +00:00
describe('utils', () => {
test('waitUntil', async () => {
expect(await waitUntil(() => true, 0.1, 100)).toBe(false)
expect(await waitUntil(() => false, 0.1, 100)).toBe(true)
})
2018-03-19 18:48:43 +00:00
})