generated from Seekra/repository-template
initialize language switch test suite with beforeEach setup
This commit is contained in:
@@ -38,3 +38,11 @@ vi.mock('@/features/icons/components/Icon.vue', () => ({
|
|||||||
template: '<span>Icon</span>'
|
template: '<span>Icon</span>'
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
describe('LanguageSwitchButton.vue', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
vi.clearAllMocks();
|
||||||
|
localStorage.clear();
|
||||||
|
document.documentElement.lang = '';
|
||||||
|
document.documentElement.dir = '';
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user