initialize language switch test suite with beforeEach setup

This commit is contained in:
2026-06-04 12:58:47 +02:00
parent a97ee3c660
commit 1c3175a3e4
@@ -37,4 +37,12 @@ vi.mock('@/features/icons/components/Icon.vue', () => ({
name: 'Icon', name: 'Icon',
template: '<span>Icon</span>' template: '<span>Icon</span>'
} }
})); }));
describe('LanguageSwitchButton.vue', () => {
beforeEach(() => {
vi.clearAllMocks();
localStorage.clear();
document.documentElement.lang = '';
document.documentElement.dir = '';
});