@@ -61,7 +61,7 @@ describe('initial navigation migration', () => {
61
61
62
62
await runMigration ( ) ;
63
63
expect ( tree . readContent ( '/index.ts' ) )
64
- . toContain ( `RouterModule.forRoot([], { relativeLinkResolution: " legacy" })` ) ;
64
+ . toContain ( `RouterModule.forRoot([], { relativeLinkResolution: ' legacy' })` ) ;
65
65
} ) ;
66
66
67
67
it ( 'should migrate options without relativeLinkResolution' , async ( ) => {
@@ -79,7 +79,7 @@ describe('initial navigation migration', () => {
79
79
80
80
await runMigration ( ) ;
81
81
expect ( tree . readContent ( '/index.ts' ) )
82
- . toContain ( `RouterModule.forRoot([], { useHash: true, relativeLinkResolution: " legacy" })` ) ;
82
+ . toContain ( `RouterModule.forRoot([], { useHash: true, relativeLinkResolution: ' legacy' })` ) ;
83
83
} ) ;
84
84
85
85
it ( 'should not migrate options containing relativeLinkResolution' , async ( ) => {
@@ -109,7 +109,7 @@ describe('initial navigation migration', () => {
109
109
await runMigration ( ) ;
110
110
expect ( tree . readContent ( '/index.ts' ) )
111
111
. toContain (
112
- `const options = { useHash: true, relativeLinkResolution: " legacy" } as ExtraOptions;` ) ;
112
+ `const options = { useHash: true, relativeLinkResolution: ' legacy' } as ExtraOptions;` ) ;
113
113
} ) ;
114
114
115
115
it ( 'should migrate when options is a variable' , async ( ) => {
@@ -121,7 +121,7 @@ describe('initial navigation migration', () => {
121
121
await runMigration ( ) ;
122
122
expect ( tree . readContent ( '/index.ts' ) )
123
123
. toContain (
124
- `const options: ExtraOptions = { useHash: true, relativeLinkResolution: " legacy" };` ) ;
124
+ `const options: ExtraOptions = { useHash: true, relativeLinkResolution: ' legacy' };` ) ;
125
125
} ) ;
126
126
127
127
it ( 'should migrate when options is a variable with no type' , async ( ) => {
@@ -142,7 +142,7 @@ describe('initial navigation migration', () => {
142
142
143
143
await runMigration ( ) ;
144
144
expect ( tree . readContent ( '/index.ts' ) )
145
- . toContain ( `const options = { useHash: true, relativeLinkResolution: " legacy" };` ) ;
145
+ . toContain ( `const options = { useHash: true, relativeLinkResolution: ' legacy' };` ) ;
146
146
expect ( tree . readContent ( '/index.ts' ) ) . toContain ( `RouterModule.forRoot([], options)` ) ;
147
147
} ) ;
148
148
@@ -155,7 +155,7 @@ describe('initial navigation migration', () => {
155
155
await runMigration ( ) ;
156
156
expect ( tree . readContent ( '/index.ts' ) )
157
157
. toContain (
158
- `const options: RouterExtraOptions = { useHash: true, relativeLinkResolution: " legacy" };` ) ;
158
+ `const options: RouterExtraOptions = { useHash: true, relativeLinkResolution: ' legacy' };` ) ;
159
159
} ) ;
160
160
161
161
it ( 'should migrate aliased RouterModule.forRoot' , async ( ) => {
@@ -173,7 +173,7 @@ describe('initial navigation migration', () => {
173
173
174
174
await runMigration ( ) ;
175
175
expect ( tree . readContent ( '/index.ts' ) )
176
- . toContain ( `AngularRouterModule.forRoot([], { relativeLinkResolution: " legacy" }),` ) ;
176
+ . toContain ( `AngularRouterModule.forRoot([], { relativeLinkResolution: ' legacy' }),` ) ;
177
177
} ) ;
178
178
179
179
function writeFile ( filePath : string , contents : string ) {
0 commit comments