Merge branch 'master' into 6016-feature-refactor-notification-page

This commit is contained in:
Wolfgang Huß 2023-03-14 15:25:46 +01:00 committed by GitHub
commit 5e56b8ba37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -134,15 +134,15 @@ describe('PostIndex', () => {
})
describe('donation-info', () => {
it('shows donation-info on default', () => {
it('hides donation-info on default', () => {
wrapper = Wrapper()
expect(wrapper.find('.top-info-bar').exists()).toBe(true)
expect(wrapper.find('.top-info-bar').exists()).toBe(false)
})
it('hides donation-info if not "showDonations"', async () => {
it('shows donation-info if "showDonations"', async () => {
wrapper = Wrapper()
await wrapper.setData({ showDonations: false })
expect(wrapper.find('.top-info-bar').exists()).toBe(false)
await wrapper.setData({ showDonations: true })
expect(wrapper.find('.top-info-bar').exists()).toBe(true)
})
})
})

View File

@ -152,7 +152,7 @@ export default {
hideByScroll: false,
revScrollpos: 0,
showFilter: false,
showDonations: true,
showDonations: false,
goal: 15000,
progress: 7000,
posts: [],