mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Unit test fixes after major updates
This commit is contained in:
parent
fe60480678
commit
acfaf6af9f
13 changed files with 21 additions and 59 deletions
|
@ -15,13 +15,13 @@ describe('Skeleton.vue', () => {
|
|||
it('should get width and height', async () => {
|
||||
await wrapper.setProps({ width: '5rem', height: '2rem', borderRadius: '10px' });
|
||||
|
||||
expect(wrapper.find('.p-skeleton').attributes().style).toEqual('width: 5rem; height: 2rem; border-radius: 10px;');
|
||||
expect(wrapper.find('.p-skeleton').attributes().style).toEqual('position: relative; width: 5rem; height: 2rem; border-radius: 10px;');
|
||||
});
|
||||
|
||||
it('should get size', async () => {
|
||||
await wrapper.setProps({ size: '4rem' });
|
||||
|
||||
expect(wrapper.find('.p-skeleton').attributes().style).toEqual('width: 4rem; height: 4rem;');
|
||||
expect(wrapper.find('.p-skeleton').attributes().style).toEqual('position: relative; width: 4rem; height: 4rem;');
|
||||
});
|
||||
|
||||
it('should get shape', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue