mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
17
components/lib/badgedirective/BadgeDirective.spec.js
Normal file
17
components/lib/badgedirective/BadgeDirective.spec.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import BadgeDirective from './BadgeDirective';
|
||||
|
||||
describe('directive badge should exist', () => {
|
||||
it('positioned badge', () => {
|
||||
const wrapper = mount({
|
||||
template: '<i class="pi pi-bell mr-4 p-text-secondary" style="font-size: 2rem" v-badge="2"></i>',
|
||||
directives: {
|
||||
badge: BadgeDirective
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.find('.p-overlay-badge').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-badge.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-badge.p-component').text()).toBe('2');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue