Remove some function emits, remove comments of wip.

This commit is contained in:
elweyn 2023-01-25 13:41:35 +01:00
parent 2eff5d99cd
commit 2f787043c1
3 changed files with 0 additions and 56 deletions

View File

@ -43,14 +43,6 @@
</b-col>
<b-col class="text-right">
<slot name="submit-btn" />
<!-- <b-button
size="md"
variant="success"
class="m-3 text-right"
@click="$emit('confirm-creation', item)"
>
{{ $t('overlay.confirm.yes') }}
</b-button> -->
</b-col>
</b-row>
</b-container>

View File

@ -314,52 +314,6 @@ describe('CreationConfirm', () => {
expect(toastErrorSpy).toBeCalledWith('Ouchhh!')
})
})
// describe('admin confirms deny', () => {
// beforeEach(async () => {
// spy.mockImplementation(() => Promise.resolve('some value'))
// await wrapper.findAll('tr').at(1).findAll('button').at(3).trigger('click')
// })
// it('opens a modal', () => {})
// it('calls the adminDeleteContribution mutation', () => {
// expect(adminDenyContributionMock).toBeCalledWith({ id: 1 })
// })
// it('commits openCreationsMinus to store', () => {
// expect(storeCommitMock).toBeCalledWith('openCreationsMinus', 1)
// })
// it('toasts a success message', () => {
// expect(toastSuccessSpy).toBeCalledWith('creation_form.toasted_denied')
// })
// })
// describe('admin cancels deny', () => {
// beforeEach(async () => {
// spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm')
// spy.mockImplementation(() => Promise.resolve(false))
// await wrapper.findAll('tr').at(1).findAll('button').at(3).trigger('click')
// })
// it('does not call the adminDeleteContribution mutation', () => {
// expect(adminDenyContributionMock).not.toBeCalled()
// })
// })
// describe('deny creation with error', () => {
// let spy
// beforeEach(async () => {
// spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm')
// spy.mockImplementation(() => Promise.resolve('some value'))
// await wrapper.findAll('tr').at(1).findAll('button').at(0).trigger('click')
// })
// it('toasts an error message', () => {
// expect(toastErrorSpy).toBeCalledWith('Ouchhh!')
// })
// })
})
})
})

View File

@ -23,8 +23,6 @@
class="mt-4"
:items="pendingCreations"
:fields="fields"
@deny-creation="denyCreation"
@remove-creation="deleteCreation"
@show-overlay="showOverlay"
@update-state="updateState"
@update-contributions="$apollo.queries.PendingContributions.refetch()"