mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix tests for favicon urls
This commit is contained in:
parent
7c43372423
commit
d67b0c8500
@ -18,12 +18,12 @@ describe('SocialMediaListItem.vue', () => {
|
|||||||
|
|
||||||
describe('given existing social media links', () => {
|
describe('given existing social media links', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
propsData = { link: { id: 's1', url: socialMediaUrl, favicon: faviconUrl } }
|
propsData = { item: { id: 's1', url: socialMediaUrl, favicon: faviconUrl } }
|
||||||
|
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('for each link it', () => {
|
describe('for each link item it', () => {
|
||||||
it('displays the favicon', () => {
|
it('displays the favicon', () => {
|
||||||
expect(wrapper.find(`img[src="${faviconUrl}"]`).exists()).toBe(true)
|
expect(wrapper.find(`img[src="${faviconUrl}"]`).exists()).toBe(true)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -100,7 +100,7 @@ describe('my-social-media.vue', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
getters = {
|
getters = {
|
||||||
'auth/user': () => ({
|
'auth/user': () => ({
|
||||||
socialMedia: [{ id: 's1', url: socialMediaUrl }],
|
socialMedia: [{ id: 's1', url: socialMediaUrl, favicon: faviconUrl }],
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user