mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
15 lines
277 B
TypeScript
15 lines
277 B
TypeScript
import { test } from "vitest";
|
|
import { assertHelper, assertHelperAsync, assertHelperBad } from "./helper.js";
|
|
|
|
test("sync", async () => {
|
|
assertHelper(3, 4);
|
|
});
|
|
|
|
test("async", async () => {
|
|
await assertHelperAsync(3, 4)
|
|
})
|
|
|
|
test("bad", () => {
|
|
assertHelperBad(3, 4)
|
|
})
|