From b31980ed6694d3160a49293917be3069cb191606 Mon Sep 17 00:00:00 2001 From: Chris Garrett Date: Mon, 11 Nov 2019 12:14:56 -0800 Subject: [PATCH] Update async generator tests --- 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 597ee270..b4429b48 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 _asyncToGenerator helper function when used together with debug-macros", co.wrap(function* () { + it("does not remove regeneratorRuntime.async 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('function _asyncToGenerator'); + expect(contents).to.include('regeneratorRuntime.async'); })); 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('function _asyncToGenerator'); + expect(contents).to.include('regeneratorRuntime.async'); expect(contents).to.include('Ember.inspect;'); expect(contents).to.not.include('assert'); }));