From a604b0147cf070ba56490342113b2dc40ae0b30d Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Fri, 20 Dec 2019 10:42:47 -0500 Subject: [PATCH] Revert "Update async generator tests" This reverts commit b31980ed6694d3160a49293917be3069cb191606. The change that required this was reverted in babel/babel#10839. --- node-tests/addon-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node-tests/addon-test.js b/node-tests/addon-test.js index b4429b48..597ee270 100644 --- a/node-tests/addon-test.js +++ b/node-tests/addon-test.js @@ -152,7 +152,7 @@ describe('ember-cli-babel', function() { }); })); - it("does not remove regeneratorRuntime.async helper function when used together with debug-macros", co.wrap(function* () { + it("does not remove _asyncToGenerator helper function when used together with debug-macros", co.wrap(function* () { input.write({ "foo.js": stripIndent` import { assert } from '@ember/debug'; @@ -167,7 +167,7 @@ describe('ember-cli-babel', function() { let contents = output.read()['foo.js']; - expect(contents).to.include('regeneratorRuntime.async'); + expect(contents).to.include('function _asyncToGenerator'); })); it("allows @ember/debug to be consumed via both debug-macros and ember-modules-api-polyfill", co.wrap(function* () { @@ -186,7 +186,7 @@ describe('ember-cli-babel', function() { let contents = output.read()['foo.js']; expect(contents).to.not.include('@ember/debug'); - expect(contents).to.include('regeneratorRuntime.async'); + expect(contents).to.include('function _asyncToGenerator'); expect(contents).to.include('Ember.inspect;'); expect(contents).to.not.include('assert'); }));