mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +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");
|
|
})
|