Skip to content

Commit

Permalink
Add more tests to ensure public modules API's are stripped.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Jul 6, 2017
1 parent 4f9a45e commit d632119
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions node-tests/addon-test.js
Expand Up @@ -96,7 +96,8 @@ describe('ember-cli-babel', function() {

it("should replace imports by default", co.wrap(function* () {
input.write({
"foo.js": `import Component from '@ember/component';`
"foo.js": `import Component from '@ember/component';`,
"app.js": `import Application from '@ember/application';`
});

subject = this.addon.transpileTree(input.path());
Expand All @@ -107,7 +108,8 @@ describe('ember-cli-babel', function() {
expect(
output.read()
).to.deep.equal({
"foo.js": `define('foo', [], function () {\n 'use strict';\n\n var Component = Ember.Component;\n});`
"foo.js": `define('foo', [], function () {\n 'use strict';\n\n var Component = Ember.Component;\n});`,
"app.js": `define('app', [], function () {\n 'use strict';\n\n var Application = Ember.Application;\n});`
});
}));

Expand Down

0 comments on commit d632119

Please sign in to comment.