clean-architecture/test/Circle.test.ts
2023-09-14 01:20:26 +00:00

7 lines
183 B
TypeScript

import Circle from "../src/Circle"
test("should calculate the area of circle", function () {
const circle = new Circle(2);
expect(circle.getArea()).toBe(12.566370614359172);
});