We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50af119 commit 0fbd106Copy full SHA for 0fbd106
1 file changed
test/components/Global/Element/BlockButton/BlockButton.test.js
@@ -1,4 +1,4 @@
1
-import { shallowMount } from '@vue/test-utils'
+import { shallowMount, mount } from '@vue/test-utils'
2
import BlockButton from '~/components/Global/Elements/BlockButton/BlockButton'
3
4
const shallowMountBlockButton = (propsData = {}) => {
@@ -37,10 +37,12 @@ describe('request pending', () => {
37
})
38
39
40
-/*
41
-test('calls toggleBlacklist on click', (t) => {
42
-})
43
-
44
-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()
45
+ } }
46
+ })
47
+ wrapper.find('button').trigger('click');
48
-*/
0 commit comments