mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-06 01:25:38 +00:00
Fix lint
This commit is contained in:
parent
e7243261f2
commit
9ce1e089fa
@ -105,7 +105,7 @@ describe('SearchResults', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('has post tab inactive after emitting switch-tab', async () => {
|
it('has post tab inactive after emitting switch-tab', async () => {
|
||||||
wrapper.find('.tab-navigation').vm.$emit('switch-tab', 'User') // emits direct from tab component to search results
|
wrapper.find('.tab-navigation').vm.$emit('switch-tab', 'User') // emits direct from tab component to search results
|
||||||
await wrapper.vm.$nextTick()
|
await wrapper.vm.$nextTick()
|
||||||
await expect(wrapper.find('[data-test="Post-tab"]').classes('--active')).toBe(false)
|
await expect(wrapper.find('[data-test="Post-tab"]').classes('--active')).toBe(false)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -12,7 +12,7 @@ export default {
|
|||||||
.mutate({
|
.mutate({
|
||||||
mutation: PostMutations().pinPost,
|
mutation: PostMutations().pinPost,
|
||||||
variables: {
|
variables: {
|
||||||
id: post.id
|
id: post.id,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -26,7 +26,7 @@ export default {
|
|||||||
.mutate({
|
.mutate({
|
||||||
mutation: PostMutations().unpinPost,
|
mutation: PostMutations().unpinPost,
|
||||||
variables: {
|
variables: {
|
||||||
id: post.id
|
id: post.id,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
@ -27,7 +27,9 @@
|
|||||||
<post-teaser
|
<post-teaser
|
||||||
:post="relatedPost"
|
:post="relatedPost"
|
||||||
:width="{ base: '100%', lg: 1 }"
|
:width="{ base: '100%', lg: 1 }"
|
||||||
@removePostFromList="post.relatedContributions = removePostFromList(relatedPost, post.relatedContributions)"
|
@removePostFromList="
|
||||||
|
post.relatedContributions = removePostFromList(relatedPost, post.relatedContributions)
|
||||||
|
"
|
||||||
@pinPost="pinPost(relatedPost, refetchPostList)"
|
@pinPost="pinPost(relatedPost, refetchPostList)"
|
||||||
@unpinPost="unpinPost(relatedPost, refetchPostList)"
|
@unpinPost="unpinPost(relatedPost, refetchPostList)"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -187,7 +187,6 @@ import { profilePagePosts } from '~/graphql/PostQuery'
|
|||||||
import UserQuery from '~/graphql/User'
|
import UserQuery from '~/graphql/User'
|
||||||
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
|
||||||
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
|
||||||
import PostMutations from '~/graphql/PostMutations'
|
|
||||||
import UpdateQuery from '~/components/utils/UpdateQuery'
|
import UpdateQuery from '~/components/utils/UpdateQuery'
|
||||||
import SocialMedia from '~/components/SocialMedia/SocialMedia'
|
import SocialMedia from '~/components/SocialMedia/SocialMedia'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user