Skip to content

Commit e6fd3c3

Browse files
committed
test
1 parent c22a7a0 commit e6fd3c3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"vue component decorator"
1616
],
1717
"scripts": {
18-
"test-build": "./node_modules/.bin/tsc && npm run test",
19-
"test": "./node_modules/.bin/mocha -r ts-node/register test/test.ts"
18+
"test-build": "npm run build && npm run test",
19+
"test": "./node_modules/.bin/mocha -r ts-node/register test/test.ts",
20+
"build":"./node_modules/.bin/tsc"
2021
},
2122
"author": "",
2223
"license": "MIT",

test/component.ts

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const FullOptionOpt = {
2828
modifier(option: any) {
2929
option.emits.push('emits3')
3030
return option
31+
},
32+
render() {
33+
return 'render value'
3134
}
3235
}
3336

@@ -56,6 +59,9 @@ describe('Component',
5659
case 'emits':
5760
expect([...opt, 'emits3'].join(',')).to.equal(FullOptionContext[key].join(','))
5861
break;
62+
case 'render':
63+
expect('render value').to.equal(FullOptionContext[key]())
64+
break;
5965
case 'modifier':
6066
return;
6167
default:

0 commit comments

Comments
 (0)