add propsData for test in Overview.spec.js

This commit is contained in:
ogerly 2022-08-14 13:32:37 +02:00
parent 0a295d59b4
commit d6d4d97151

View File

@ -19,6 +19,24 @@ const apolloQueryMock = jest.fn().mockResolvedValue({
},
})
const propsData = {
items: [
{
id: 1,
name: 'Meditation',
memo: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut l',
amount: '200',
validFrom: '2022-04-01',
validTo: '2022-08-01',
cycle: 'täglich',
maxPerCycle: '3',
maxAmountPerMonth: 0,
link: 'https://localhost/redeem/CL-1a2345678',
},
],
count: 1,
}
const storeCommitMock = jest.fn()
const mocks = {
@ -38,7 +56,7 @@ describe('Overview', () => {
let wrapper
const Wrapper = () => {
return mount(Overview, { localVue, mocks })
return mount(Overview, { localVue, mocks, propsData })
}
describe('mount', () => {