diff --git a/types/index.d.ts b/types/index.d.ts index 3d22f3ede..35096577f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -67,13 +67,13 @@ interface Wrapper extends BaseWrapper { readonly element: HTMLElement readonly options: WrapperOptions - find = VueClass> (selector: Ctor): Wrapper + find (selector: VueClass): Wrapper find (selector: ComponentOptions): Wrapper find (selector: FunctionalComponentOptions): Wrapper find (selector: string): Wrapper find (selector: RefSelector): Wrapper - findAll = VueClass> (selector: Ctor): WrapperArray + findAll (selector: VueClass): WrapperArray findAll (selector: ComponentOptions): WrapperArray findAll (selector: FunctionalComponentOptions): WrapperArray findAll (selector: string): WrapperArray diff --git a/types/test/mount.ts b/types/test/mount.ts index d7bb41737..6821c5b03 100644 --- a/types/test/mount.ts +++ b/types/test/mount.ts @@ -9,7 +9,7 @@ import { normalOptions, functionalOptions, Normal, ClassComponent } from './reso const normalWrapper = mount(normalOptions) const normalFoo: string = normalWrapper.vm.foo -const classWrapper = mount(ClassComponent) +const classWrapper = mount(ClassComponent) const classFoo: string = classWrapper.vm.bar const functinalWrapper = mount(functionalOptions) @@ -22,7 +22,7 @@ localVue.use(Vuex) const store = new Vuex.Store({}) -mount(ClassComponent, { +mount(ClassComponent, { attachToDocument: true, localVue, mocks: { @@ -57,7 +57,7 @@ mount(functionalOptions, { /** * MountOptions should receive Vue's component options */ -mount(ClassComponent, { +mount(ClassComponent, { propsData: { test: 'test' }, diff --git a/types/test/shallow.ts b/types/test/shallow.ts index a6bb2c6d7..1463a56eb 100644 --- a/types/test/shallow.ts +++ b/types/test/shallow.ts @@ -9,7 +9,7 @@ import { normalOptions, functionalOptions, Normal, ClassComponent } from './reso const normalWrapper = shallow(normalOptions) const normalFoo: string = normalWrapper.vm.foo -const classWrapper = shallow(ClassComponent) +const classWrapper = shallow(ClassComponent) const classFoo: string = classWrapper.vm.bar const functinalWrapper = shallow(functionalOptions) @@ -22,7 +22,7 @@ localVue.use(Vuex) const store = new Vuex.Store({}) -shallow(ClassComponent, { +shallow(ClassComponent, { attachToDocument: true, localVue, mocks: { @@ -51,7 +51,7 @@ shallow(functionalOptions, { /** * ShallowOptions should receive Vue's component options */ -shallow(ClassComponent, { +shallow(ClassComponent, { propsData: { test: 'test' }, diff --git a/types/test/wrapper.ts b/types/test/wrapper.ts index 6fb3f7fc4..5ecf7465d 100644 --- a/types/test/wrapper.ts +++ b/types/test/wrapper.ts @@ -4,7 +4,7 @@ import { normalOptions, functionalOptions, Normal, ClassComponent } from './reso /** * Tests for BaseWrapper API */ -let wrapper = mount(normalOptions) +let wrapper = mount(normalOptions) let bool: boolean = wrapper.contains('.foo') bool = wrapper.contains(normalOptions) @@ -51,12 +51,12 @@ bool = wrapper.options.attachedToDocument let found = wrapper.find('.foo') found = wrapper.find(normalOptions) found = wrapper.find(functionalOptions) -found = wrapper.find(ClassComponent) +found = wrapper.find(ClassComponent) let array = wrapper.findAll('.bar') array = wrapper.findAll(normalOptions) array = wrapper.findAll(functionalOptions) -array = wrapper.findAll(ClassComponent) +array = wrapper.findAll(ClassComponent) let str: string = wrapper.html() str = wrapper.text()