mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Add user['Count'] to fetchAllConntections tests.
This commit is contained in:
parent
0b7e0fbc4b
commit
b15d2ff252
@ -74,7 +74,7 @@ describe('FollowList.vue', () => {
|
||||
|
||||
expect(wrapper.vm.allConnectionsCount).toBe(user.followingCount)
|
||||
expect(wrapper.findAll('.user-teaser')).toHaveLength(user.following.length)
|
||||
expect(wrapper.emitted('fetchAllConnections')).toEqual([['following']])
|
||||
expect(wrapper.emitted('fetchAllConnections')).toEqual([['following', user['followingCount']]])
|
||||
})
|
||||
})
|
||||
|
||||
@ -85,7 +85,7 @@ describe('FollowList.vue', () => {
|
||||
|
||||
expect(wrapper.vm.allConnectionsCount).toBe(user.followedByCount)
|
||||
expect(wrapper.findAll('.user-teaser')).toHaveLength(user.followedBy.length)
|
||||
expect(wrapper.emitted('fetchAllConnections')).toEqual([['followedBy']])
|
||||
expect(wrapper.emitted('fetchAllConnections')).toEqual([['followedBy', user['followedByCount']]])
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user