Update MessageItem unit test

This commit is contained in:
Eugene Serb 2022-12-18 12:44:24 +03:00
parent 2a70e31294
commit 40c82153eb

View File

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