Skip to content

Commit

Permalink
fix(tests): Use new syntax for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
winniehell committed Apr 28, 2023
1 parent 7532d68 commit d28a352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('Store Mock', () => {
/** @type {import('@vue/test-utils').Wrapper} */
let wrapper
beforeEach(() => {
wrapper = mount(Helper, { mocks })
wrapper = mount(Helper, { global: { mocks } })
})

it('correctly maps state', () => {
Expand Down Expand Up @@ -120,7 +120,7 @@ describe('Store Mock', () => {
render: () => null,
computed: mapState('nonExistent', ['a']),
},
{ mocks },
{ global: { mocks } },
)
expect(() => {
// eslint-disable-next-line no-unused-expressions
Expand Down

0 comments on commit d28a352

Please sign in to comment.