8 lines
174 B
TypeScript
8 lines
174 B
TypeScript
import { expect, test } from "vitest";
|
|
import { type Box, box } from "./box.ts";
|
|
|
|
test("box", () => {
|
|
const b: Box<number> = box(42);
|
|
expect(b).toEqual({ value: 42 });
|
|
});
|