mirror of
https://github.com/eugene-serb/wavelovers.git
synced 2023-09-09 23:41:16 +03:00
Update MessageItem unit test
This commit is contained in:
parent
2a70e31294
commit
40c82153eb
@ -4,9 +4,14 @@ 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 }
|
||||
});
|
||||
const wrapper = shallowMount(
|
||||
MessageItem,
|
||||
{
|
||||
slots: {
|
||||
default: msg,
|
||||
},
|
||||
}
|
||||
);
|
||||
expect(wrapper.html()).toContain(msg);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user