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
29
components/lib/breadcrumb/Breadcrumb.spec.js
Normal file
29
components/lib/breadcrumb/Breadcrumb.spec.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import Breadcrumb from './Breadcrumb.vue';
|
||||
|
||||
describe('Breadcrumb', () => {
|
||||
it('should exist', () => {
|
||||
const wrapper = mount(Breadcrumb, {
|
||||
global: {
|
||||
stubs: {
|
||||
'router-link': true
|
||||
},
|
||||
mocks: {
|
||||
$router: {
|
||||
currentRoute: {
|
||||
path: vi.fn()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
home: { icon: 'pi pi-home', to: '/' },
|
||||
model: [{ label: 'Computer' }, { label: 'Notebook' }, { label: 'Accessories' }, { label: 'Backpacks' }, { label: 'Item' }]
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.find('.p-breadcrumb.p-component').exists()).toBe(true);
|
||||
expect(wrapper.findAll('.p-menuitem-separator').length).toBe(5);
|
||||
expect(wrapper.findAll('.p-menuitem-text').length).toBe(5);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue