Skip to content

Commit 7937c75

Browse files
committed
test: fix router tests
1 parent ddb007e commit 7937c75

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

generator/codemods/router/__testfixtures__/create-history.input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const routes = [
1717
const router = new VueRouter({
1818
mode: 'history',
1919
base: process.env.BASE_URL,
20-
routes,
20+
routes
2121
});
2222

2323
export default router;

generator/codemods/router/__testfixtures__/create-history.output.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const routes = [
1717
const router = createRouter({
1818
history: createWebHistory(),
1919
base: process.env.BASE_URL,
20-
routes,
20+
routes
2121
});
2222

2323
export default router;

generator/codemods/router/__testfixtures__/create-router.input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const routes = [
1616

1717
const router = new VueRouter({
1818
base: process.env.BASE_URL,
19-
routes,
19+
routes
2020
});
2121

2222
export default router;

generator/codemods/router/__testfixtures__/create-router.output.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createRouter } from 'vue-router';
22
import Home from '../views/Home.vue';
3-
import About from '../views/About.vue';
43

54
const routes = [
65
{
@@ -17,7 +16,7 @@ const routes = [
1716

1817
const router = createRouter({
1918
base: process.env.BASE_URL,
20-
routes,
19+
routes
2120
});
2221

2322
export default router;

0 commit comments

Comments
 (0)