mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
remove comments
This commit is contained in:
parent
119d4c4e82
commit
e8ca65c040
@ -88,15 +88,13 @@ describe('donations.vue', () => {
|
|||||||
|
|
||||||
describe('form component click', () => {
|
describe('form component click', () => {
|
||||||
it('on #showDonations checkbox changes "showDonations" to true', async () => {
|
it('on #showDonations checkbox changes "showDonations" to true', async () => {
|
||||||
// starts with false
|
await wrapper.find('#showDonations').setChecked(true)
|
||||||
await wrapper.find('#showDonations').setChecked(true) // set to true
|
|
||||||
expect(wrapper.vm.showDonations).toBe(true)
|
expect(wrapper.vm.showDonations).toBe(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('on #showDonations checkbox twice changes "showDonations" back to false', async () => {
|
it('on #showDonations checkbox twice changes "showDonations" back to false', async () => {
|
||||||
// starts with false
|
await wrapper.find('#showDonations').setChecked(true)
|
||||||
await wrapper.find('#showDonations').setChecked(true) // set to true
|
await wrapper.find('#showDonations').setChecked(false)
|
||||||
await wrapper.find('#showDonations').setChecked(false) // set to true
|
|
||||||
expect(wrapper.vm.showDonations).toBe(false)
|
expect(wrapper.vm.showDonations).toBe(false)
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -137,7 +135,7 @@ describe('donations.vue', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('calls mutation with input values once', async () => {
|
it('calls mutation with input values once', async () => {
|
||||||
wrapper.find('#showDonations').setChecked(true) // set to true
|
wrapper.find('#showDonations').setChecked(true)
|
||||||
await wrapper.vm.$nextTick()
|
await wrapper.vm.$nextTick()
|
||||||
wrapper.find('#donations-goal').setValue('20000')
|
wrapper.find('#donations-goal').setValue('20000')
|
||||||
await wrapper.vm.$nextTick()
|
await wrapper.vm.$nextTick()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user