UNPKG

@mozaic-ds/vue-3

Version:

Vue.js implementation of Mozaic Design System

19 lines (15 loc) 431 B
import { shallowMount } from '@vue/test-utils'; import MButton from './MButton.vue'; describe('MButton', () => { function init(props) { return shallowMount(MButton, { props }); } describe('label', () => { it('should display button label when label props is provided.', () => { const wrapper = init({ label: 'Button label' }); expect(wrapper.text()).toEqual('Button label'); }); }); });