Skip to content

Commit

Permalink
Merge pull request #15823 from kellyselden/helper-unit-test
Browse files Browse the repository at this point in the history
convert new helper unit test to fixture
  • Loading branch information
rwjblue authored Nov 6, 2017
2 parents 36b2243 + f4e055e commit bae456b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions node-tests/blueprints/helper-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ describe('Acceptance: ember generate and destroy helper', function() {
return emberNew()
.then(() => emberGenerateDestroy(args, _file => {
expect(_file('app/helpers/foo/bar-baz.js'))
.to.contain("import { helper } from '@ember/component/helper';\n\n" +
"export function fooBarBaz(params/*, hash*/) {\n" +
" return params;\n" +
"}\n\n" +
"export default helper(fooBarBaz);");

.to.equal(file('helper.js'));
expect(_file('tests/unit/helpers/foo/bar-baz-test.js'))
.to.equal(file('helper-test/unit.js'));
}));
Expand Down

0 comments on commit bae456b

Please sign in to comment.