fix failing client tests

This commit is contained in:
Vasily Belolapotkov 2019-09-25 10:32:35 +03:00
parent 50feeed8bf
commit e1751347fc
2 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,9 @@ describe('CommentList.vue', () => {
},
},
},
$route: {
hash: '',
},
}
stubs = {
EditorContent: "<div class='stub'></div>",

View File

@ -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)
}