mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
10 lines
177 B
JavaScript
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);
|