mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix failing client tests
This commit is contained in:
parent
50feeed8bf
commit
e1751347fc
@ -50,6 +50,9 @@ describe('CommentList.vue', () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
$route: {
|
||||
hash: '',
|
||||
},
|
||||
}
|
||||
stubs = {
|
||||
EditorContent: "<div class='stub'></div>",
|
||||
|
||||
@ -75,7 +75,7 @@ export default {
|
||||
|
||||
const followedUser = follow ? data.followUser : data.unfollowUser
|
||||
this.$emit('update', followedUser)
|
||||
} catch {
|
||||
} catch (err) {
|
||||
optimisticResult.followedByCurrentUser = !follow
|
||||
this.$emit('optimistic', optimisticResult)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user