wavelovers/tests/unit/MessageItem.spec.ts
2022-12-18 12:44:24 +03:00

18 lines
395 B
TypeScript

import { shallowMount } from '@vue/test-utils';
import MessageItem from '@/components/MessageItem.vue';
describe('MessageItem.vue', () => {
it('renders slots when passed', () => {
const msg = 'new message';
const wrapper = shallowMount(
MessageItem,
{
slots: {
default: msg,
},
}
);
expect(wrapper.html()).toContain(msg);
});
});