File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ function matchRoute (
180
180
m = decodeURI ( path ) . match ( regex )
181
181
} catch ( err ) {
182
182
if ( process . env . NODE_ENV !== 'production' ) {
183
- warn ( `Error decoding "${ path } ". Leaving it intact.` )
183
+ warn ( false , `Error decoding "${ path } ". Leaving it intact.` )
184
184
}
185
185
}
186
186
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ const encode = str =>
14
14
. replace ( encodeReserveRE , encodeReserveReplacer )
15
15
. replace ( commaRE , ',' )
16
16
17
- export function decode ( str ) {
17
+ export function decode ( str : string ) {
18
18
try {
19
19
return decodeURIComponent ( str )
20
20
} catch ( err ) {
21
21
if ( process . env . NODE_ENV !== 'production' ) {
22
- warn ( `Error decoding "${ str } ". Leaving it intact.` )
22
+ warn ( false , `Error decoding "${ str } ". Leaving it intact.` )
23
23
}
24
24
}
25
25
return str
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ module.exports = {
9
9
browser
10
10
. url ( 'http://localhost:8080/hash-mode/' )
11
11
. waitForElementVisible ( '#app' , 1000 )
12
- . assert . count ( 'li' , 9 )
13
- . assert . count ( 'li a' , 8 )
12
+ . assert . count ( 'li' , 12 )
13
+ . assert . count ( 'li a' , 11 )
14
14
. assert . attributeContains ( 'li:nth-child(1) a' , 'href' , '/hash-mode/#/' )
15
15
. assert . attributeContains ( 'li:nth-child(2) a' , 'href' , '/hash-mode/#/foo' )
16
16
. assert . attributeContains ( 'li:nth-child(3) a' , 'href' , '/hash-mode/#/bar' )
You can’t perform that action at this time.
0 commit comments