output.js 232 B

12345678910111213
  1. var _ref, _;
  2. function then(fn) {
  3. return async value => {
  4. return fn((await value));
  5. };
  6. }
  7. var result = (_ref = (_ = 1, (async x => (await x) + 1)(_)), then(x => x + 1)(_ref));
  8. result.then(val => {
  9. expect(val).toBe(3);
  10. });