@@ -138,15 +138,15 @@ describe('routerLinks', () => {
138
138
const parentEl = document . querySelector ( parentTag )
139
139
await parentEl . updateComplete
140
140
141
- expect ( $ ( '#a-parentlink' ) . attr ( 'href' ) ) . to . be . equal ( '/parent' )
141
+ expect ( $ ( '#a-parentlink' ) . attr ( 'href' ) ) . to . be . equal ( '/parent' )
142
142
} )
143
143
} )
144
144
145
145
it ( 'should use param-* and query-* attributes to generate href' , async function ( ) {
146
146
return router . transitionTo ( 'parent' ) . then ( async function ( ) {
147
147
const parentEl = document . querySelector ( parentTag )
148
148
await parentEl . updateComplete
149
-
149
+
150
150
expect ( $ ( '#a-rootlink2' ) . attr ( 'href' ) ) . to . be . equal ( '/root/2' )
151
151
expect ( $ ( '#a-grandchildlink' ) . attr ( 'href' ) ) . to . be . equal ( '/parent/child/grandchild?name=test' )
152
152
} )
@@ -156,7 +156,7 @@ describe('routerLinks', () => {
156
156
return router . transitionTo ( 'parent' ) . then ( async function ( ) {
157
157
const parentEl = document . querySelector ( parentTag )
158
158
await parentEl . updateComplete
159
-
159
+
160
160
expect ( $ ( '#a-secondrootlink' ) . attr ( 'href' ) ) . to . be . equal ( '/secondroot/2?testValue=yyy' )
161
161
} )
162
162
} )
@@ -379,7 +379,7 @@ describe('routerLinks', () => {
379
379
return router . transitionTo ( 'brokenroot' ) . then ( async function ( ) {
380
380
const brokenEl = document . querySelector ( brokenTag )
381
381
await brokenEl . updateComplete
382
- expect ( $ ( '#a-rootlink' ) . attr ( 'href' ) ) . to . be . equal ( '/root/1' )
382
+ expect ( $ ( '#a-rootlink' ) . attr ( 'href' ) ) . to . be . equal ( '/root/1' )
383
383
} )
384
384
} )
385
385
0 commit comments