mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Unit test fixes
This commit is contained in:
parent
f7b83553e5
commit
84b85dc77d
10 changed files with 889 additions and 1399 deletions
|
@ -48,30 +48,3 @@ describe('Message.vue', () => {
|
|||
expect(icon.classes()).toContain('pi-discord');
|
||||
});
|
||||
});
|
||||
|
||||
describe('Message.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = mount(Message, {
|
||||
plugins: [PrimeVue],
|
||||
props: {
|
||||
severity: 'error',
|
||||
life: 3000,
|
||||
sticky: false
|
||||
},
|
||||
stubs: {
|
||||
transition: false
|
||||
},
|
||||
slots: {
|
||||
default: 'Error Message Content'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should sticky and life works', () => {
|
||||
setTimeout(() => {
|
||||
expect(wrapper.vm.visible).toBe(false);
|
||||
}, 3001);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue