Skip to content

Commit b6bcf46

Browse files
committed
fix(#119): allow routes vue-router creation through routes param from both jest and mocha
1 parent 29e37dd commit b6bcf46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vue-testing-library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function render(
3636
}
3737

3838
if (routes) {
39-
const VueRouter = require('vue-router')
39+
const VueRouter = require('vue-router') || require('vue-router').default
4040
localVue.use(VueRouter)
4141
router = new VueRouter({
4242
routes,

0 commit comments

Comments
 (0)