Skip to content

Commit

Permalink
Test toggleBlacklist callback
Browse files Browse the repository at this point in the history
  • Loading branch information
roschaefer committed Sep 24, 2018
1 parent 50af119 commit 0fbd106
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/components/Global/Element/BlockButton/BlockButton.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { shallowMount } from '@vue/test-utils'
import { shallowMount, mount } from '@vue/test-utils'
import BlockButton from '~/components/Global/Elements/BlockButton/BlockButton'

const shallowMountBlockButton = (propsData = {}) => {
Expand Down Expand Up @@ -37,10 +37,12 @@ describe('request pending', () => {
})
})

/*
test('calls toggleBlacklist on click', (t) => {
})
test('opens a confirmation dialog if foreignEntity is being followed', (t) => {
test('calls toggleBlacklist on click', (done) => {
const wrapper = mount(BlockButton, {
mocks: { $t: () => {} },
propsData: {toggleBlacklist: () => {
done()
} }
})
wrapper.find('button').trigger('click');
})
*/

0 comments on commit 0fbd106

Please sign in to comment.