import { describe, it, expect } from 'vitest' import { sleepAsync } from './sleep-async.js' /** * Tests for async sleep */ export const sleepAsyncTests = describe('sleepAsync', () => { it('Should return a Promise', () => { expect(sleepAsync()).toBeInstanceOf(Promise) }) it('Should be resolved in time', async () => { await sleepAsync(15) }) })