Skip to content

Commit

Permalink
[Glimmer2] Move Helper Lookup
Browse files Browse the repository at this point in the history
While this is indirectly tested in multiple places probably the best to
have an actually test for it.

/cc @chancancode
  • Loading branch information
chadhietala committed Mar 21, 2016
1 parent fd03495 commit 00e5157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ import { RenderingTest, moduleFor } from '../../utils/test-case';

moduleFor('Helpers test: custom helpers', class extends RenderingTest {

['@test non-dashed helpers are found']() {
this.registerHelper('fullname', ([first, last]) => `${first} ${last}`);

this.render('{{fullname "Robert" "Jackson"}}');

this.assertText('Robert Jackson');
}

['@test it can resolve custom helpers']() {
this.registerHelper('hello-world', () => 'hello world');

Expand Down
43 changes: 0 additions & 43 deletions packages/ember-htmlbars/tests/integration/helper-lookup-test.js

This file was deleted.

0 comments on commit 00e5157

Please sign in to comment.