2024-01-27 12:00:48 +00:00
|
|
|
import {setup} from "../source/index.js";
|
2022-12-22 13:00:03 +00:00
|
|
|
|
|
|
|
const add = (a: number, b: number): number => a + b;
|
|
|
|
|
2024-01-27 12:00:48 +00:00
|
|
|
void setup("Example add", async (group) => {
|
2022-12-22 13:00:03 +00:00
|
|
|
group.test("1 + 1", async (test) => {
|
|
|
|
test.equals(add(1, 1), 2);
|
|
|
|
});
|
|
|
|
|
|
|
|
group.test("2 + 2", async (test) => {
|
|
|
|
test.equals(add(2, 2), 5);
|
|
|
|
});
|
|
|
|
});
|