Vitest unit test configs completed. All tests pass

This commit is contained in:
Bahadir Sofuoglu 2022-09-14 16:17:12 +03:00
parent cb3e230f5f
commit eb2de5460c
33 changed files with 116 additions and 66 deletions

View file

@ -46,7 +46,9 @@ describe('Message.vue', () => {
});
it('should sticky and life works', async () => {
jest.runTimersToTime(3001);
expect(wrapper.vm.visible).toBe(false);
setTimeout(() => {
expect(wrapper.vm.visible).toBe(false);
}, 3000);
});
});