Skip to content

Commit 3091fb5

Browse files
committed
test
1 parent fbdfb40 commit 3091fb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const FullOptionOpt = {
2626
inheritAttrs: true,
2727
expose: ['expose1', 'expose2'],
2828
modifier(option: any) {
29-
option.emits.push('emits3')
29+
option.modifierCalled=true
3030
return option
3131
},
3232
render() {
@@ -60,7 +60,7 @@ describe('Component',
6060
const opt = (FullOptionOpt as any)[key]
6161
switch (key) {
6262
case 'emits':
63-
expect([...opt, 'emits3'].join(',')).to.equal(FullOptionContext[key].join(','))
63+
expect(opt.join(',')).to.equal(FullOptionContext[key].join(','))
6464
break;
6565
case 'render':
6666
expect('render value').to.equal(FullOptionContext[key]())
@@ -69,6 +69,7 @@ describe('Component',
6969
expect(opt.test).to.equal(FullOptionContext['test'])
7070
break;
7171
case 'modifier':
72+
expect(true).to.equal(FullOptionContext['modifierCalled'])
7273
return;
7374
default:
7475
expect(opt).to.equal(FullOptionContext[key])

0 commit comments

Comments
 (0)