mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add test for Community.vue
This commit is contained in:
parent
8ddc6c5604
commit
c8234ea54e
@ -17,9 +17,6 @@ describe('Community', () => {
|
|||||||
$apollo: {
|
$apollo: {
|
||||||
mutate: apolloMutationMock,
|
mutate: apolloMutationMock,
|
||||||
},
|
},
|
||||||
$route: {
|
|
||||||
query: {},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
@ -34,7 +31,7 @@ describe('Community', () => {
|
|||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
})
|
})
|
||||||
|
|
||||||
it('has a components community-page', () => {
|
it('has a DIV .community-page', () => {
|
||||||
expect(wrapper.find('div.community-page').exists()).toBe(true)
|
expect(wrapper.find('div.community-page').exists()).toBe(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -33,22 +33,23 @@ export default {
|
|||||||
{
|
{
|
||||||
id: '0',
|
id: '0',
|
||||||
date: '07/06/2022',
|
date: '07/06/2022',
|
||||||
memo: 'sadd sd ad adad asd asd asd ad',
|
memo: 'Ich habe 10 Stunden die Elbwiesen von Müll befreit.',
|
||||||
amount: 200,
|
amount: 200,
|
||||||
status: 'pending',
|
status: 'pending',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
date: '06/22/2022',
|
date: '06/22/2022',
|
||||||
memo: 'sadd sd ad adad asd asd asd ad',
|
memo: 'Ich habe 30 Stunden Frau Müller beim EInkaufen und im Haushalt geholfen.',
|
||||||
amount: 600,
|
amount: 600,
|
||||||
status: 'pending',
|
status: 'pending',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '2',
|
id: '2',
|
||||||
date: '05/04/2022',
|
date: '05/04/2022',
|
||||||
memo: 'sadd sd ad adad asd asd asd ad',
|
memo:
|
||||||
amount: 1200,
|
'Ich habe 50 Stunden den Nachbarkindern bei ihren Hausaufgaben geholfen und Nachhilfeunterricht gegeben.',
|
||||||
|
amount: 1000,
|
||||||
status: 'pending',
|
status: 'pending',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user