mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Fix: missing stub in _id/_slug spec
This commit is contained in:
parent
37ed748b29
commit
801eb1e515
@ -60,12 +60,12 @@ describe('FollowList.vue', () => {
|
||||
})
|
||||
it(`has a button to load all remaining users ${type}`, async () => {
|
||||
wrapper.find('button').trigger('click')
|
||||
await wrapper.vm.$nextTick()
|
||||
//await wrapper.vm.$nextTick()
|
||||
//expect(wrapper.vm.connections.length).toBe(user[`${type}Count`])
|
||||
expect(queryMock).toHaveBeenCalledWith({
|
||||
query: wrapper.vm.queries[type],
|
||||
variables: { id: user.id },
|
||||
})
|
||||
expect(wrapper.vm.connections.length).toBe(user[`${type}Count`])
|
||||
})
|
||||
}),
|
||||
)
|
||||
@ -76,8 +76,8 @@ describe('FollowList.vue', () => {
|
||||
const user = {
|
||||
name: 'Jenny Rostock',
|
||||
id: 'u3',
|
||||
followedByCount: 32,
|
||||
followingCount: 31,
|
||||
followedByCount: 12,
|
||||
followingCount: 15,
|
||||
followedBy: [
|
||||
{
|
||||
id: '2877b626-bac0-43df-b2bf-4ee025ba38b2',
|
||||
@ -181,106 +181,6 @@ const additionalConnections = {
|
||||
name: 'Rodolfo Lind',
|
||||
slug: 'rodolfo-lind',
|
||||
},
|
||||
{
|
||||
id: 'a09a2341-0575-4235-96c6-2ebc7d77de3f',
|
||||
name: 'Phil Dare',
|
||||
slug: 'phil-dare',
|
||||
},
|
||||
{
|
||||
id: 'c5f7eea9-ee4b-4384-91cd-b6c7d128f122',
|
||||
name: 'Omar Turcotte',
|
||||
slug: 'omar-turcotte',
|
||||
},
|
||||
{
|
||||
id: '036cae06-5c8f-4ffb-923e-73b2baba1a00',
|
||||
name: 'Rosemary Wiegand',
|
||||
slug: 'rosemary-wiegand',
|
||||
},
|
||||
{
|
||||
id: '9011b4fd-feec-4b74-b6d0-e0a41b6658e6',
|
||||
name: 'Lela Kautzer',
|
||||
slug: 'lela-kautzer',
|
||||
},
|
||||
{
|
||||
id: '019a48f6-5785-4c5c-a2ac-7cb80007aa41',
|
||||
name: 'Roosevelt Lindgren III',
|
||||
slug: 'roosevelt-lindgren-iii',
|
||||
},
|
||||
{
|
||||
id: '3a089655-19c8-478f-97c1-345b3dfc95a3',
|
||||
name: 'Lee Erdman',
|
||||
slug: 'lee-erdman',
|
||||
},
|
||||
{
|
||||
id: '8af5df96-8c09-4fe4-a9cd-572840c94529',
|
||||
name: 'Mamie Conn',
|
||||
slug: 'mamie-conn',
|
||||
},
|
||||
{
|
||||
id: 'ca1b7bcb-1254-43ff-90a1-b0e6d49c31bc',
|
||||
name: 'Sergio Casper',
|
||||
slug: 'sergio-casper',
|
||||
},
|
||||
{
|
||||
id: '4c11e030-0419-43a0-8d7a-dc198b57efd7',
|
||||
name: 'Charles Ruecker',
|
||||
slug: 'charles-ruecker',
|
||||
},
|
||||
{
|
||||
id: '25983fa2-a861-46f3-9c71-124286de7367',
|
||||
name: 'Caroline Pollich',
|
||||
slug: 'caroline-pollich',
|
||||
},
|
||||
{
|
||||
id: '687a0fcb-531d-42c1-8854-a47dc59f61e7',
|
||||
name: 'Dr. Darryl Rath',
|
||||
slug: 'dr-darryl-rath',
|
||||
},
|
||||
{
|
||||
id: 'd0ecaa07-0ba1-4deb-ac6f-1dc01cdd6174',
|
||||
name: 'Isaac Purdy MD',
|
||||
slug: 'isaac-purdy-md',
|
||||
},
|
||||
{
|
||||
id: 'c0846aa5-7f3e-44d9-89db-bef675cac431',
|
||||
name: 'Nichole Schamberger',
|
||||
slug: 'nichole-schamberger',
|
||||
},
|
||||
{
|
||||
id: 'u6',
|
||||
name: 'Louie',
|
||||
slug: 'louie',
|
||||
},
|
||||
{
|
||||
id: 'u1',
|
||||
name: 'Peter Lustig',
|
||||
slug: 'peter-lustig',
|
||||
},
|
||||
{
|
||||
id: '6de37964-e79b-4be4-b384-ed571c37a31e',
|
||||
name: 'Mr. Oliver Quitzon',
|
||||
slug: 'mr-oliver-quitzon',
|
||||
},
|
||||
{
|
||||
id: '96446bee-ce95-47d6-acc1-742c70d21518',
|
||||
name: 'Myrtle Williamson',
|
||||
slug: 'myrtle-williamson',
|
||||
},
|
||||
{
|
||||
id: '9e58bc8d-d63a-4b03-92df-fb540ff8b2ce',
|
||||
name: 'Andy Stracke',
|
||||
slug: 'andy-stracke',
|
||||
},
|
||||
{
|
||||
id: 'd808b58b-b097-4614-a2c5-81187e9884ca',
|
||||
name: 'Warren Crist',
|
||||
slug: 'warren-crist',
|
||||
},
|
||||
{
|
||||
id: 'ff800e3a-ceba-44e9-904b-458c20e518ff',
|
||||
name: 'Dolores Wilkinson V',
|
||||
slug: 'dolores-wilkinson-v',
|
||||
},
|
||||
],
|
||||
|
||||
following: [
|
||||
@ -324,85 +224,5 @@ const additionalConnections = {
|
||||
name: 'Ms. Rita Thompson',
|
||||
slug: 'ms-rita-thompson',
|
||||
},
|
||||
{
|
||||
id: '036cae06-5c8f-4ffb-923e-73b2baba1a00',
|
||||
name: 'Rosemary Wiegand',
|
||||
slug: 'rosemary-wiegand',
|
||||
},
|
||||
{
|
||||
id: 'eec8ee9e-ee4e-4b83-b655-a106eb857611',
|
||||
name: 'Devin Reynolds',
|
||||
slug: 'devin-reynolds',
|
||||
},
|
||||
{
|
||||
id: '96446bee-ce95-47d6-acc1-742c70d21518',
|
||||
name: 'Myrtle Williamson',
|
||||
slug: 'myrtle-williamson',
|
||||
},
|
||||
{
|
||||
id: '9f305e7a-ae5a-4e22-8269-8b6899af674f',
|
||||
name: 'Hugh Harris Sr.',
|
||||
slug: 'hugh-harris-sr',
|
||||
},
|
||||
{
|
||||
id: 'c0846aa5-7f3e-44d9-89db-bef675cac431',
|
||||
name: 'Nichole Schamberger',
|
||||
slug: 'nichole-schamberger',
|
||||
},
|
||||
{
|
||||
id: '019a48f6-5785-4c5c-a2ac-7cb80007aa41',
|
||||
name: 'Roosevelt Lindgren III',
|
||||
slug: 'roosevelt-lindgren-iii',
|
||||
},
|
||||
{
|
||||
id: 'ff800e3a-ceba-44e9-904b-458c20e518ff',
|
||||
name: 'Dolores Wilkinson V',
|
||||
slug: 'dolores-wilkinson-v',
|
||||
},
|
||||
{
|
||||
id: '9e58bc8d-d63a-4b03-92df-fb540ff8b2ce',
|
||||
name: 'Andy Stracke',
|
||||
slug: 'andy-stracke',
|
||||
},
|
||||
{
|
||||
id: 'd808b58b-b097-4614-a2c5-81187e9884ca',
|
||||
name: 'Warren Crist',
|
||||
slug: 'warren-crist',
|
||||
},
|
||||
{
|
||||
id: '45313bea-9152-4c8d-9c6e-1eca029979f8',
|
||||
name: 'Jeremiah Breitenberg',
|
||||
slug: 'jeremiah-breitenberg',
|
||||
},
|
||||
{
|
||||
id: '8af5df96-8c09-4fe4-a9cd-572840c94529',
|
||||
name: 'Mamie Conn',
|
||||
slug: 'mamie-conn',
|
||||
},
|
||||
{
|
||||
id: '4c11e030-0419-43a0-8d7a-dc198b57efd7',
|
||||
name: 'Charles Ruecker',
|
||||
slug: 'charles-ruecker',
|
||||
},
|
||||
{
|
||||
id: '687a0fcb-531d-42c1-8854-a47dc59f61e7',
|
||||
name: 'Dr. Darryl Rath',
|
||||
slug: 'dr-darryl-rath',
|
||||
},
|
||||
{
|
||||
id: 'ca1b7bcb-1254-43ff-90a1-b0e6d49c31bc',
|
||||
name: 'Sergio Casper',
|
||||
slug: 'sergio-casper',
|
||||
},
|
||||
{
|
||||
id: '25983fa2-a861-46f3-9c71-124286de7367',
|
||||
name: 'Caroline Pollich',
|
||||
slug: 'caroline-pollich',
|
||||
},
|
||||
{
|
||||
id: 'd0ecaa07-0ba1-4deb-ac6f-1dc01cdd6174',
|
||||
name: 'Isaac Purdy MD',
|
||||
slug: 'isaac-purdy-md',
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
@ -9,6 +9,8 @@ config.stubs['client-only'] = '<span><slot /></span>'
|
||||
config.stubs['v-popover'] = '<span><slot /></span>'
|
||||
config.stubs['nuxt-link'] = '<span><slot /></span>'
|
||||
config.stubs['infinite-loading'] = '<span><slot /></span>'
|
||||
config.stubs['follow-list'] = '<span><slot /></span>'
|
||||
|
||||
|
||||
describe('ProfileSlug', () => {
|
||||
let wrapper
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user