Aftereach fix for breacrumbitem component test

pull/3496/head
Bahadır Sofuoğlu 2023-01-05 01:55:53 +03:00
parent 5bd58fdf04
commit 2268d6d7d5
1 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import { RouterLinkStub, shallowMount } from '@vue/test-utils';
import { afterEach, beforeEach, expect } from 'vitest';
import { beforeEach, expect } from 'vitest';
import BreadcrumbItem from './BreadcrumbItem.vue';
let wrapper = null;
@ -24,11 +24,12 @@ beforeEach(() => {
template: null
}
});
afterEach(() => {
vi.clearAllMocks();
});
});
afterEach(() => {
vi.clearAllMocks();
});
describe('BreadcrumbItem', () => {
it('When component is mount, text should be exists', () => {
expect(wrapper.find('.p-menuitem-text').exists()).toBe(true);