mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
11 lines
238 B
JavaScript
11 lines
238 B
JavaScript
const triple = function (x) {
|
|
return x * 3;
|
|
};
|
|
async function myFunction(n) {
|
|
var _ref;
|
|
return _ref = Math.abs(n), triple(await Promise.resolve(_ref));
|
|
}
|
|
return myFunction(-7).then(function (result) {
|
|
expect(result).toBe(21);
|
|
});
|