Fix tests for favicon urls

This commit is contained in:
Wolfgang Huß 2021-11-22 15:54:36 +01:00
parent 7c43372423
commit d67b0c8500
2 changed files with 3 additions and 3 deletions

View File

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

View File

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