2022-09-06 12:03:37 +00:00
|
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import AvatarGroup from './AvatarGroup.vue';
|
2022-12-08 11:04:25 +00:00
|
|
|
import Avatar from '@/components/avatar/Avatar.vue';
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
describe('AvatarGroup.vue', () => {
|
|
|
|
it('should exist', () => {
|
|
|
|
const wrapper = mount(AvatarGroup, {
|
|
|
|
global: {
|
|
|
|
components: {
|
|
|
|
Avatar
|
|
|
|
}
|
|
|
|
},
|
|
|
|
slots: {
|
|
|
|
default: '<Avatar icon="pi pi-user" size="xlarge" shape="circle" />'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
expect(wrapper.find('.p-avatar-group.p-component').exists()).toBe(true);
|
|
|
|
expect(wrapper.find('.p-avatar.p-component').exists()).toBe(true);
|
|
|
|
});
|
2022-09-14 11:26:01 +00:00
|
|
|
});
|