mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
24
components/progressspinner/ProgressSpinner.spec.js
Normal file
24
components/progressspinner/ProgressSpinner.spec.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import ProgressSpinner from './ProgressSpinner.vue';
|
||||
|
||||
describe('ProgressSpinner.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = mount(ProgressSpinner, {
|
||||
props: {
|
||||
strokeWidth: '8',
|
||||
fill: 'green',
|
||||
animationDuration: '.5s'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should exist', () => {
|
||||
expect(wrapper.find('.p-progress-spinner').exists()).toBe(true);
|
||||
expect(wrapper.find('svg.p-progress-spinner-svg').exists()).toBe(true);
|
||||
expect(wrapper.find('svg.p-progress-spinner-svg').attributes().style).toBe('animation-duration: .5s;');
|
||||
expect(wrapper.find('circle.p-progress-spinner-circle').attributes().fill).toBe('green');
|
||||
expect(wrapper.find('circle.p-progress-spinner-circle').attributes().strokeMiterlimit).toBe('10');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue