File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
test/components/Global/Element/BlockButton Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- import { shallowMount } from '@vue/test-utils'
1
+ import { shallowMount , mount } from '@vue/test-utils'
2
2
import BlockButton from '~/components/Global/Elements/BlockButton/BlockButton'
3
3
4
4
const shallowMountBlockButton = ( propsData = { } ) => {
@@ -37,10 +37,12 @@ describe('request pending', () => {
37
37
} )
38
38
} )
39
39
40
- /*
41
- test('calls toggleBlacklist on click', (t) => {
42
- })
43
-
44
- test('opens a confirmation dialog if foreignEntity is being followed', (t) => {
40
+ test ( 'calls toggleBlacklist on click' , ( done ) => {
41
+ const wrapper = mount ( BlockButton , {
42
+ mocks : { $t : ( ) => { } } ,
43
+ propsData : { toggleBlacklist : ( ) => {
44
+ done ( )
45
+ } }
46
+ } )
47
+ wrapper . find ( 'button' ) . trigger ( 'click' ) ;
45
48
} )
46
- */
You can’t perform that action at this time.
0 commit comments