Unit test fixes

This commit is contained in:
Bahadır Sofuoğlu 2023-04-06 02:06:03 +03:00
parent f7b83553e5
commit 84b85dc77d
10 changed files with 889 additions and 1399 deletions

View file

@ -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);
});
});