import { mount } from '@vue/test-utils'; import Button from 'primevue/button'; import Badge from './Badge.vue'; describe('Badge.vue', () => { it('should exist', () => { const wrapper = mount(Badge, { props: { value: '29', severity: 'warning', size: 'large' } }); expect(wrapper.find('.p-badge.p-component').exists()).toBe(true); expect(wrapper.find('.p-badge-warning').exists()).toBe(true); expect(wrapper.find('.p-badge-lg').exists()).toBe(true); expect(wrapper.find('.p-badge-no-gutter').exists()).toBe(false); }); it('badge classes should exist', () => { const wrapper = mount({ template: '