Skip to content

Commit

Permalink
Revert "Update async generator tests"
Browse files Browse the repository at this point in the history
This reverts commit b31980e.

The change that required this was reverted in babel/babel#10839.
  • Loading branch information
rwjblue committed Dec 20, 2019
1 parent cbf1141 commit a604b01
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 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';
Expand All @@ -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* () {
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('regeneratorRuntime.async');
expect(contents).to.include('function _asyncToGenerator');
expect(contents).to.include('Ember.inspect;');
expect(contents).to.not.include('assert');
}));
Expand Down

0 comments on commit a604b01

Please sign in to comment.