Files
2022-10-09 17:21:02 +02:00

10 lines
177 B
JavaScript

var _ref;
function area(rect) {
return rect.width * rect.height;
}
const result = (_ref = Math.abs(-5), area({
width: _ref,
height: _ref + 3
}));
expect(result).toBe(40);