Skip to content

Commit

Permalink
Update packages/ember-template-compiler/lib/system/compile-options.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Godfrey Chan <[email protected]>
  • Loading branch information
chadhietala and chancancode committed Jan 14, 2021
1 parent ba57d78 commit c874f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function compileOptions(
{
customizeComponentName(tagname: string): string {
assert(
`Malformed component lookup in "${_options.moduleName}". Got <${tagname} /> but you must use "::" to indicate a lookup`,
`You tried to invoke a component named <${tagname} /> in "${_options.moduleName}", but that is not a valid name for a component. Did you mean to use the "::" syntax for nested components?`,
!malformedComponentLookup(tagname)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ moduleFor(

expectAssertion(() => {
options.customizeComponentName('Foo:Bar');
}, /Malformed component lookup in "test.js". Got <Foo:Bar \/> but you must use "::" to indicate a lookup/);
}, /You tried to invoke a component named <Foo:Bar \/> in "test.js", but that is not a valid name for a component. Did you mean to use the "::" syntax for nested components\?/);

assert.ok(options.customizeComponentName('Foo::Bar'));
}
Expand Down

0 comments on commit c874f15

Please sign in to comment.