Skip to content

Commit

Permalink
Update async generator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Garrett committed Nov 11, 2019
1 parent 31a7586 commit b31980e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node-tests/addon-test.js
Expand Up @@ -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';
Expand All @@ -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* () {
Expand All @@ -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');
}));
Expand Down

0 comments on commit b31980e

Please sign in to comment.