mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
7 lines
214 B
TypeScript
7 lines
214 B
TypeScript
import { test, expect } from "vitest"
|
|
|
|
test('multiple errors', () => {
|
|
expect(new Promise((r) => r("xx"))).resolves.toBe("yy");
|
|
expect(new Promise((r) => setTimeout(() => r("xx"), 10))).resolves.toBe("zz");
|
|
})
|