Skip to content

Commit

Permalink
Merge pull request #14587 from serenaf/serena/improve-helper-loookup-…
Browse files Browse the repository at this point in the history
…assertion

[BUGFIX beta] Better helper lookup assertion
  • Loading branch information
rwjblue authored Nov 8, 2016
2 parents edd3902 + 3c736ed commit e659bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ember-glimmer/lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default class Environment extends GlimmerEnvironment {
return new CurlyComponentSyntax(args, definition, templates, symbolTable);
}

assert(`A helper named "${key}" could not be found`, !isBlock || this.hasHelper(path, symbolTable));
assert(`A component or helper named "${key}" could not be found`, !isBlock || this.hasHelper(path, symbolTable));
}

if (!isSimple && appendType === 'unknown') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ moduleFor('Components test: local lookup', class extends RenderingTest {

expectAssertion(() => {
this.render('{{x-outer}}');
}, /A helper named "x-inner" could not be found/);
}, /A component or helper named "x-inner" could not be found/);
}

['@test overrides global lookup']() {
Expand Down

0 comments on commit e659bd6

Please sign in to comment.