File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ class Router {
250
250
'root container.'
251
251
)
252
252
}
253
+ /* istanbul ignore if */
253
254
if ( App instanceof Vue ) {
254
255
throw new Error (
255
256
'Must start vue-router with a component, not a ' +
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export function warn (msg) {
15
15
/* istanbul ignore next */
16
16
if ( window . console ) {
17
17
console . warn ( '[vue-router] ' + msg )
18
- /* istanbul ignore if */
19
18
if ( ! exports . Vue || exports . Vue . config . debug ) {
20
19
console . warn ( new Error ( 'warning stack trace:' ) . stack )
21
20
}
@@ -137,6 +136,7 @@ export function resolveAsyncComponent (handler, cb) {
137
136
export function mapParams ( path , params = { } , query ) {
138
137
path = path . replace ( / : ( [ ^ \/ ] + ) / g, ( _ , key ) => {
139
138
let val = params [ key ]
139
+ /* istanbul ignore if */
140
140
if ( ! val ) {
141
141
warn (
142
142
'param "' + key + '" not found when generating ' +
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ describe('Core', function () {
342
342
router . start ( {
343
343
replace : false ,
344
344
template :
345
- '<div v-link><a id="link" href="/a" ></a></div>' +
345
+ '<div v-link><a href="/a"><span id="link"></span ></a></div>' +
346
346
'<router-view></router-view>'
347
347
} , el )
348
348
var link = el . querySelector ( '#link' )
You can’t perform that action at this time.
0 commit comments