initialize language switch test suite with beforeEach setup

This commit is contained in:
2026-06-04 12:58:47 +02:00
committed by Gitea
parent a6194bb874
commit 02af96a07d
@@ -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 = '';
});