File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
packages/@ember/-internals/glimmer
tests/integration/components Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ export default class RuntimeResolver implements IRuntimeResolver<OwnedTemplateMe
139139 lookupComponentHandle ( name : string , meta : OwnedTemplateMeta ) {
140140 let nextHandle = this . handles . length ;
141141 let handle = this . handle ( this . _lookupComponentDefinition ( name , meta ) ) ;
142+
143+ assert (
144+ 'Could not find component `<TextArea />` (did you mean `<Textarea />`?)' ,
145+ ! ( EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS && name === 'text-area' && handle === null )
146+ ) ;
147+
142148 if ( nextHandle === handle ) {
143149 this . componentDefinitionCount ++ ;
144150 }
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ if (EMBER_GLIMMER_ANGLE_BRACKET_BUILT_INS) {
8383 moduleFor (
8484 'Components test: <Textarea>' ,
8585 class extends TextAreaRenderingTest {
86+ [ '@test Should catch <TextArea />` typo' ] ( ) {
87+ expectAssertion ( ( ) => {
88+ this . render ( '<TextArea />' ) ;
89+ } , 'Could not find component `<TextArea />` (did you mean `<Textarea />`?)' ) ;
90+ }
91+
8692 [ '@test Should insert a <textarea>' ] ( assert ) {
8793 this . render ( '<Textarea />' ) ;
8894
You can’t perform that action at this time.
0 commit comments