Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Dec 8, 2023
1 parent d2ee87c commit 8e93375
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,3 @@ const emit = defineEmits<{
</v-text-field>
</div>
</template>

8 changes: 1 addition & 7 deletions frontend/src/views/__tests__/ProfileView.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { describe, expect, it } from 'vitest'

import HeaderDefault from '@/components/HeaderDefault.vue'
import BookmarksCard from '@/components/Profile/BookmarksCard.vue'
import CaseCard from '@/components/Profile/CaseCard.vue'
import ProfileInformationCard from '@/components/Profile/ProfileInformationCard.vue'
import { setupMountedComponents } from '@/lib/test-utils'
import { type UserData } from '@/stores/user'
Expand Down Expand Up @@ -40,15 +38,11 @@ describe.concurrent('Profile view', async () => {

expect(wrapper.html()).toMatch('User Profile')
expect(wrapper.text()).toMatch('You are currently logged in...')
expect(wrapper.text()).toMatch('Your bookmarks')
expect(wrapper.text()).toMatch('Bookmarks')
expect(wrapper.text()).toMatch('Case Information')

const profileInformationCard = wrapper.findComponent(ProfileInformationCard)
const bookmarksCard = wrapper.findComponent(BookmarksCard)
const caseCard = wrapper.findComponent(CaseCard)
expect(profileInformationCard.exists()).toBe(true)
expect(bookmarksCard.exists()).toBe(true)
expect(caseCard.exists()).toBe(true)
})

it('renders the main content if not logged in', async () => {
Expand Down

0 comments on commit 8e93375

Please sign in to comment.