Nuxt/test/unit/utils.test.js
2019-01-29 22:53:42 +03:30

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)
})
})