Skip to content

Commit 1d0a6fd

Browse files
committed
fix(types): rename stub to stubs in mount/shallow options
1 parent 8279cf0 commit 1d0a6fd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ interface MountOptions<V extends Vue> extends ComponentOptions<V> {
8585
localVue?: typeof Vue
8686
intercept?: object
8787
slots?: Slots
88-
stub?: Stubs
88+
stubs?: Stubs
8989
}
9090

9191
type ShallowOptions<V extends Vue> = MountOptions<V>

types/test/mount.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mount<ClassComponent>(ClassComponent, {
3434
foo: [normalOptions, functionalOptions],
3535
bar: ClassComponent
3636
},
37-
stub: {
37+
stubs: {
3838
foo: normalOptions,
3939
bar: functionalOptions,
4040
baz: ClassComponent,
@@ -46,7 +46,7 @@ mount(functionalOptions, {
4646
context: {
4747
props: { foo: 'test' }
4848
},
49-
stub: ['child']
49+
stubs: ['child']
5050
})
5151

5252
/**

types/test/shallow.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ shallow<ClassComponent>(ClassComponent, {
3434
foo: [normalOptions, functionalOptions],
3535
baz: ClassComponent
3636
},
37-
stub: {
37+
stubs: {
3838
foo: normalOptions,
3939
bar: functionalOptions,
4040
baz: ClassComponent,
@@ -46,7 +46,7 @@ shallow(functionalOptions, {
4646
context: {
4747
props: { foo: 'test' }
4848
},
49-
stub: ['child']
49+
stubs: ['child']
5050
})
5151

5252
/**

0 commit comments

Comments
 (0)