mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
updated unit test for showDonation flag in index page
This commit is contained in:
parent
42a370ffc8
commit
f91fd8924e
@ -131,15 +131,15 @@ describe('PostIndex', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('donation-info', () => {
|
describe('donation-info', () => {
|
||||||
it('shows donation-info on default', () => {
|
it('hides donation-info on default', () => {
|
||||||
wrapper = Wrapper()
|
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()
|
wrapper = Wrapper()
|
||||||
await wrapper.setData({ showDonations: false })
|
await wrapper.setData({ showDonations: true })
|
||||||
expect(wrapper.find('.top-info-bar').exists()).toBe(false)
|
expect(wrapper.find('.top-info-bar').exists()).toBe(true)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user