Skip to content

Commit 647fa89

Browse files
committed
feat: add placeholder test
1 parent e24e994 commit 647fa89

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/sum.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, test } from "vitest";
2+
import { sum } from "./sum";
3+
4+
test("adds 1 + 2 to equal 3", () => {
5+
expect(sum(1, 2)).toBe(3);
6+
});

test/sum.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function sum(a: number, b: number): number {
2+
return a + b;
3+
}

0 commit comments

Comments
 (0)