Skip to content

Commit 1a269de

Browse files
committed
测试: 完善测试
1 parent 9c1caca commit 1a269de

File tree

11 files changed

+373
-302
lines changed

11 files changed

+373
-302
lines changed

example/module/basic/basic.router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ const routes: RouteRecordRaw = {
1111
path: '/basic/hello-world',
1212
component: () => import('./hello-world/hello-world.view'),
1313
meta: {
14-
title: '全功能类组件',
14+
title: '加减',
1515
},
1616
},
1717
{
1818
path: '/basic/user-input',
1919
component: () => import('./user-input/user-input.view'),
2020
meta: {
21-
title: 'user input',
21+
title: '增删改查',
2222
},
2323
},
2424
],

example/module/basic/hello-world/hello-world.view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class HelloWorldView extends VueComponent {
66

77
render() {
88
return (
9-
<Card title={'加减组件'}>
9+
<Card title={'加减功能'}>
1010
<Button type={'primary'} onClick={() => this.count++}>
1111
+
1212
</Button>
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { Mut, VueComponent } from 'vue3-oop'
1+
import { Card } from 'ant-design-vue'
2+
import { VueComponent } from 'vue3-oop'
23

34
export default class UserInputView extends VueComponent {
4-
@Mut() message = 'Hello World!'
5-
65
render() {
7-
return <div>111</div>
6+
return <Card title={'增删改查'}></Card>
87
}
98
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"docs:dev": "vitepress dev docs",
2424
"docs:build": "vitepress build docs",
2525
"docs:serve": "vitepress serve docs",
26-
"test": "vitest --ui",
26+
"test": "vitest",
2727
"coverage": "vitest --coverage"
2828
},
2929
"files": [
@@ -57,36 +57,36 @@
5757
"@release-it/conventional-changelog": "^4.2.2",
5858
"@types/lodash-es": "^4.17.6",
5959
"@types/markdown-it": "^12.2.3",
60-
"@types/node": "^17.0.22",
60+
"@types/node": "^17.0.23",
6161
"@types/prettier": "^2.4.4",
62-
"@typescript-eslint/eslint-plugin": "^5.16.0",
63-
"@typescript-eslint/parser": "^5.16.0",
64-
"@vitejs/plugin-vue": "^2.2.4",
65-
"@vitest/ui": "^0.7.10",
66-
"@vue/test-utils": "^2.0.0-rc.18",
62+
"@typescript-eslint/eslint-plugin": "^5.18.0",
63+
"@typescript-eslint/parser": "^5.18.0",
64+
"@vitejs/plugin-vue": "^2.3.1",
65+
"@vitest/ui": "^0.9.2",
66+
"@vue/test-utils": "^2.0.0-rc.19",
6767
"@vue3-oop/plugin-vue-jsx": "^1.4.0",
68-
"ant-design-vue": "^3.1.0-rc.2",
68+
"ant-design-vue": "^3.1.1",
6969
"autobind-decorator": "^2.4.0",
7070
"c8": "^7.11.0",
7171
"commitizen": "^4.2.4",
7272
"commitlint-config-cz": "^0.13.3",
7373
"cz-customizable": "^6.3.0",
74-
"eslint": "^8.11.0",
74+
"eslint": "^8.13.0",
7575
"eslint-config-prettier": "^8.5.0",
7676
"eslint-plugin-prettier": "^4.0.0",
77-
"happy-dom": "^2.50.0",
77+
"happy-dom": "^2.55.0",
7878
"injection-js": "^2.4.0",
7979
"lint-staged": "^12.3.7",
8080
"lodash-es": "^4.17.21",
81-
"prettier": "^2.6.0",
82-
"release-it": "^14.13.1",
81+
"prettier": "^2.6.2",
82+
"release-it": "^14.14.0",
8383
"rimraf": "^3.0.2",
84-
"sass": "^1.49.9",
84+
"sass": "^1.50.0",
8585
"tslib": "^2.3.1",
86-
"typescript": "^4.6.2",
87-
"vite": "^2.8.6",
86+
"typescript": "^4.6.3",
87+
"vite": "^2.9.1",
8888
"vitepress": "^0.22.3",
89-
"vitest": "^0.7.10",
89+
"vitest": "^0.9.2",
9090
"vue": "^3.2.31",
9191
"vue-router": "^4.0.14"
9292
},

0 commit comments

Comments
 (0)