Skip to content

Commit

Permalink
changed vm type to any
Browse files Browse the repository at this point in the history
  • Loading branch information
taku-y-9308 committed Mar 26, 2024
1 parent a8cc83b commit 2e92019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/mountingOptions/global.plugins.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ describe('mounting options: plugins', () => {
const wrapper = mount(Option, {
global: { plugins: [Plugin] }
})
expect(wrapper.vm.foo).toBeDefined()
expect((wrapper.vm as any).foo).toBeDefined()
})

it('provides access to a global property from an Options API component with a setup() function', () => {
const wrapper = mount(OptionsSetup, {
global: { plugins: [Plugin] }
})
expect(wrapper.vm.foo).toBeDefined()
expect((wrapper.vm as any).foo).toBeDefined()
})

it('provides access to a global property from an Options API component with a setup() function that does not return', () => {
const wrapper = mount(OptionsSetupWithoutReturn, {
global: { plugins: [Plugin] }
})
expect(wrapper.vm.foo).toBeDefined()
expect((wrapper.vm as any).foo).toBeDefined()
})
})
})
Expand Down

0 comments on commit 2e92019

Please sign in to comment.