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

11 lines
219 B
JavaScript

function triple(x) {
return x * 3;
}
async function asyncFunction(n) {
var _ref;
return _ref = Math.abs(n), triple(await Promise.resolve(_ref));
}
asyncFunction(-7).then(result => {
expect(result).toBe(21);
});