Semaphore/web/tests/unit/example.spec.js

11 lines
329 B
JavaScript
Raw Normal View History

2020-10-03 13:39:33 +02:00
import { expect } from 'chai';
import { shallowMount } from '@vue/test-utils';
import YesNoDialog from '@/components/YesNoDialog.vue';
2020-10-03 13:39:33 +02:00
describe('YesNoDialog.vue', () => {
2020-10-03 13:39:33 +02:00
it('renders props.msg when passed', () => {
const wrapper = shallowMount(YesNoDialog);
expect(wrapper.text()).to.include('Cancel Yes');
2020-10-03 13:39:33 +02:00
});
});