import { shallowMount } from '@vue/test-utils'; import InitialState from 'new-dashboard/components/States/InitialState'; describe('InitialState.vue', () => { it('should render correctly the initial state box', () => { const title = { title: 'My title' }; const initialState = shallowMount(InitialState, { propsData: title, slots: { icon: '', description: '

This is my description

', actionButton: '' } }); expect(initialState).toMatchSnapshot(); }); });