mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-19 03:05:48 +00:00
16 lines
329 B
TypeScript
16 lines
329 B
TypeScript
import { expect, test } from "vitest";
|
|
import { init } from "@/assets/data";
|
|
import { setupTests } from "@specs/vitest.setup";
|
|
function sum(a: number, b: number) {
|
|
return a + b;
|
|
}
|
|
|
|
test("adds 1 + 2 to equal 3", () => {
|
|
expect(sum(1, 2)).toBe(3);
|
|
});
|
|
|
|
test("loadForLang", async () => {
|
|
setupTests();
|
|
await init("en");
|
|
});
|