cartodb-4.42/lib/assets/test/spec/new-dashboard/unit/specs/components/InitialState.spec.js
2024-04-06 05:25:13 +00:00

21 lines
605 B
JavaScript

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: '<img src="test.svg"/>',
description: '<p>This is my description</p>',
actionButton: '<button class="test">This is a button test</button>'
}
});
expect(initialState).toMatchSnapshot();
});
});