mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 00:29:09 +08:00
feat: jest
This commit is contained in:
9
test/sum-module.test.ts
Normal file
9
test/sum-module.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
function sum(a: number, b: number) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
describe("sum module", () => {
|
||||
test("adds 1 + 2 to equal 3", () => {
|
||||
expect(sum(1, 2)).toBe(3);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user