jest-hands-on/templates/template/sum.test.js

6 lines
100 B
JavaScript
Raw Normal View History

2022-02-18 13:17:48 +09:00
import sum from "./sum";
2021-07-27 10:54:21 +09:00
2022-07-22 19:06:15 +09:00
test("1と2の合計は3です", () => {
2021-07-27 10:54:21 +09:00
expect(sum(1, 2)).toBe(3);
});