| 1 |
const triple = x => x * 3; |
| 2 |
async function myFunction(n) { |
| 3 |
var _ref, _ref2, _ref3, _n; |
| 4 |
return _ref = (_ref2 = (_ref3 = (_n = n, Math.abs(_n)), Promise.resolve(_ref3)), await _ref2), triple(_ref); |
| 5 |
} |
| 6 |
return myFunction(-7).then(result => { |
| 7 |
expect(result).toBe(21); |
| 8 |
}); |