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
23
components/lib/card/Card.spec.js
Normal file
23
components/lib/card/Card.spec.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import Card from './Card.vue';
|
||||
|
||||
describe('Card.vue', () => {
|
||||
it('should exist', () => {
|
||||
const wrapper = mount(Card, {
|
||||
slots: {
|
||||
header: 'Advanced Card Header',
|
||||
title: 'Advanced Card',
|
||||
subtitle: 'Advanced subtitle',
|
||||
content: '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>',
|
||||
footer: 'Advanced Card Footer'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.find('.p-card.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-card-header').text()).toBe('Advanced Card Header');
|
||||
expect(wrapper.find('.p-card-title').text()).toBe('Advanced Card');
|
||||
expect(wrapper.find('.p-card-subtitle').text()).toBe('Advanced subtitle');
|
||||
expect(wrapper.find('.p-card-content').text()).toBe('Lorem ipsum dolor sit amet, consectetur adipisicing elit.');
|
||||
expect(wrapper.find('.p-card-footer').text()).toBe('Advanced Card Footer');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue