import { shallowMount } from '@vue/test-utils'
import ActionButton from '~/components/ActionButton'

describe('ActionButton', () => {
  describe('icon props', () => {
    test('pass string', () => {
      const wrapper = shallowMount(ActionButton, {
        propsData: {
          icon: 'user'
        }
      })
      expect(wrapper.contains('.fa-user')).toBe(true)
    })
    test('pass array', () => {
      const wrapper = shallowMount(ActionButton, {
        propsData: {
          icon: ['user', 'users']
        }
      })
      expect(wrapper.contains('.fa-user')).toBe(true)
      expect(wrapper.contains('.fa-users')).toBe(false)
      wrapper.setProps({
        checked: true
      })
      expect(wrapper.contains('.fa-user')).toBe(false)
      expect(wrapper.contains('.fa-users')).toBe(true)
    })
  })
})

@@ -2,24 +2,17 @@
 mport %7B 
-shallowM
+m
 ount %7D f
@@ -203,32 +203,25 @@
 t wrapper = 
-shallowM
+m
 ount(ActionB
@@ -410,16 +410,9 @@
 r = 
-shallowM
+m
 ount

Change from shallowMount to mount