File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
modules/@angular/router-deprecated Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export class RuleSet {
49
49
if ( isPresent ( config . name ) && config . name [ 0 ] . toUpperCase ( ) != config . name [ 0 ] ) {
50
50
let suggestedName = config . name [ 0 ] . toUpperCase ( ) + config . name . substring ( 1 ) ;
51
51
throw new BaseException (
52
- `Route "${ config . path } " with name "${ config . name } " does not begin with an uppercase letter. Route names should be CamelCase like "${ suggestedName } ".` ) ;
52
+ `Route "${ config . path } " with name "${ config . name } " does not begin with an uppercase letter. Route names should be PascalCase like "${ suggestedName } ".` ) ;
53
53
}
54
54
55
55
if ( config instanceof AuxRoute ) {
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export function main() {
172
172
. catch ( ( e ) => {
173
173
expect ( e . originalException )
174
174
. toContainError (
175
- `Route "/child" with name "child" does not begin with an uppercase letter. Route names should be CamelCase like "Child".` ) ;
175
+ `Route "/child" with name "child" does not begin with an uppercase letter. Route names should be PascalCase like "Child".` ) ;
176
176
async . done ( ) ;
177
177
return null ;
178
178
} ) } ) ) ;
@@ -185,7 +185,7 @@ export function main() {
185
185
. catch ( ( e ) => {
186
186
expect ( e . originalException )
187
187
. toContainError (
188
- `Route "/child" with name "child" does not begin with an uppercase letter. Route names should be CamelCase like "Child".` ) ;
188
+ `Route "/child" with name "child" does not begin with an uppercase letter. Route names should be PascalCase like "Child".` ) ;
189
189
async . done ( ) ;
190
190
return null ;
191
191
} ) } ) ) ;
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export function main() {
164
164
expect ( ( ) => recognizer . config (
165
165
new Route ( { path : 'app/user/:name' , component : DummyCmpA , name : 'user' } ) ) )
166
166
. toThrowError (
167
- `Route "app/user/:name" with name "user" does not begin with an uppercase letter. Route names should be CamelCase like "User".` ) ;
167
+ `Route "app/user/:name" with name "user" does not begin with an uppercase letter. Route names should be PascalCase like "User".` ) ;
168
168
} ) ;
169
169
170
170
You can’t perform that action at this time.
0 commit comments