From 088b144ee86a82fdcba96158cc9deb698d21579d Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Sun, 13 Jun 2021 19:26:05 +0200 Subject: [PATCH] simple spec for user profile --- frontend/src/views/Pages/UserProfile.spec.js | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 frontend/src/views/Pages/UserProfile.spec.js diff --git a/frontend/src/views/Pages/UserProfile.spec.js b/frontend/src/views/Pages/UserProfile.spec.js new file mode 100644 index 000000000..7716be9cf --- /dev/null +++ b/frontend/src/views/Pages/UserProfile.spec.js @@ -0,0 +1,23 @@ +import { shallowMount } from '@vue/test-utils' + +import UserProfile from './UserProfile' + +const localVue = global.localVue + +describe('UserProfile', () => { + let wrapper + + const Wrapper = () => { + return shallowMount(UserProfile, { localVue }) + } + + describe('shallowMount', () => { + beforeEach(() => { + wrapper = Wrapper() + }) + + it('renders the component', () => { + expect(wrapper.findComponent({ name: 'user-card' }).exists()).toBeTruthy() + }) + }) +})