Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Apr 1, 2021
1 parent 1600308 commit 8ad8350
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions tests/fixture/issue-1455/case2/output/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,31 @@ var obj = {
};
},
byPlatform: function (platform) {
var _byPlatform = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(platform) {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(platform) {
var result;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return this.find({
platform: {
$eq: platform
}
});

case 2:
result = _context.sent;
return _context.abrupt("return", result);

case 4:
case "end":
return _context.stop();
}
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while (1) switch (_ctx.prev = _ctx.next) {
case 0:
_ctx.next = 2;
return this.find({
platform: {
$eq: platform
}
});
case 2:
result = _ctx.sent;
return _ctx.abrupt("return", result);
case 4:
case "end":
return _ctx.stop();
}
}, _callee, this);
}));

function byPlatform(_x) {
return _byPlatform.apply(this, arguments);
}

return byPlatform;
return function () {
return _ref.apply(this, arguments);
};
}()
};
console.log(obj.byPlatform('foo'));
obj.byPlatform('foo').then(function (v) {
return console.log(v);
});

0 comments on commit 8ad8350

Please sign in to comment.