Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Feb 22, 2018
1 parent 5442a39 commit ea3a2c5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions node-tests/addon-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,33 @@ describe('ember-cli-babel', function() {
}));

});

describe('_shouldDoNothing', function() {
it("will no-op if nothing to do", co.wrap(function* () {
input.write({
"foo.js": `invalid code`
});

subject = this.addon.transpileTree(input.path(), {
'ember-cli-babel': {
compileModules: false,
disablePresetEnv: true,
disableDebugTooling: true,
disableEmberModulesAPIPolyfill: true
}
});

output = createBuilder(subject);

yield output.build();

expect(
output.read()
).to.deep.equal({
"foo.js": `invalid code`
});
}));
});
});

describe('_getAddonOptions', function() {
Expand Down

0 comments on commit ea3a2c5

Please sign in to comment.