From 918d6768e85c84e5dd5f9f4e416265d525e1c81a Mon Sep 17 00:00:00 2001 From: "johannes.vos" Date: Thu, 4 Jun 2026 13:34:48 +0200 Subject: [PATCH] test: move language switch test, fix header comments and code indentation --- .../__tests__/LanguageSwitchButton.test.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/utils/__tests__/LanguageSwitchButton.test.js b/src/utils/__tests__/LanguageSwitchButton.test.js index bbd2993..add624c 100644 --- a/src/utils/__tests__/LanguageSwitchButton.test.js +++ b/src/utils/__tests__/LanguageSwitchButton.test.js @@ -1,22 +1,22 @@ /* - * Copyright 2026 Seekra - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +Copyright 2026 Seekra + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ import { expect, test, describe, vi, beforeEach } from 'vitest'; import { mount } from '@vue/test-utils'; -import LanguageSwitchButton from '@/features/i18n/components/LanguageSwitchButton.vue'; +import LanguageSwitchButton from '../LanguageSwitchButton.vue'; import { loadLanguage } from '@/i18n'; vi.mock('@/i18n', () => ({ @@ -47,7 +47,7 @@ describe('LanguageSwitchButton.vue', () => { document.documentElement.dir = ''; }); -test('renders correctly with initial state closed', () => { + test('renders correctly with initial state closed', () => { const wrapper = mount(LanguageSwitchButton); expect(wrapper.find('.language-button').exists()).toBe(true);