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

6 lines
98 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-02-18 13:17:48 +09:00
test("1 と 2 の合計は 3", () => {
2021-07-27 10:54:21 +09:00
expect(sum(1, 2)).toBe(3);
});