From e1e20b5ad2ff6383fcc8213a2b43070fc9b85954 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2026 21:36:46 +0300 Subject: [PATCH] remove --- .../specs/components/user_profile.spec.js | 99 ------------------- 1 file changed, 99 deletions(-) delete mode 100644 test/unit/specs/components/user_profile.spec.js diff --git a/test/unit/specs/components/user_profile.spec.js b/test/unit/specs/components/user_profile.spec.js deleted file mode 100644 index a3d7a795a..000000000 --- a/test/unit/specs/components/user_profile.spec.js +++ /dev/null @@ -1,99 +0,0 @@ -import { mount } from '@vue/test-utils' -import { createStore } from 'vuex' - -import UserProfile from 'src/components/user_profile/user_profile.vue' - -import { getters } from 'src/modules/users.js' - -const mutations = { - clearTimeline: () => { - /* no-op */ - }, -} - -const actions = { - fetchUser: () => { - /* no-op */ - }, - fetchUserByScreenName: () => { - /* no-op */ - }, -} - -const testGetters = { - findUser: (state) => getters.findUser(state.users), - findUserByName: (state) => getters.findUserByName(state.users), - relationship: (state) => getters.relationship(state.users), - mergedConfig: () => ({ - colors: '', - highlight: {}, - customTheme: { - colors: [], - }, - }), -} - -const localUser = { - id: 100, - is_local: true, - screen_name: 'testUser', - screen_name_ui: 'testUser', -} - -const extUser = { - id: 100, - is_local: false, - screen_name: 'testUser@test.instance', - screen_name_ui: 'testUser@test.instance', -} - -const externalProfileStore = createStore({ - mutations, - actions, - getters: testGetters, -}) - -const localProfileStore = createStore({ - mutations, - actions, - getters: testGetters, -}) - -// https://github.com/vuejs/test-utils/issues/1382 -describe.skip('UserProfile', () => { - it('renders external profile', () => { - const wrapper = mount(UserProfile, { - global: { - plugins: [externalProfileStore], - mocks: { - $route: { - params: { id: 100 }, - name: 'external-user-profile', - }, - $t: (msg) => msg, - }, - }, - }) - - expect(wrapper.find('.user-screen-name').text()).to.eql( - '@testUser@test.instance', - ) - }) - - it('renders local profile', () => { - const wrapper = mount(UserProfile, { - global: { - plugins: [localProfileStore], - mocks: { - $route: { - params: { name: 'testUser' }, - name: 'user-profile', - }, - $t: (msg) => msg, - }, - }, - }) - - expect(wrapper.find('.user-screen-name').text()).to.eql('@testUser') - }) -})