From 8a7919ea429e6f7959483ccd4bf9c78db83ef578 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Tue, 13 Feb 2024 14:15:28 +0100 Subject: [PATCH] Fix test --- client/tests/unit/srf.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/tests/unit/srf.spec.ts b/client/tests/unit/srf.spec.ts index e5eb0305..bd2c969b 100644 --- a/client/tests/unit/srf.spec.ts +++ b/client/tests/unit/srf.spec.ts @@ -6,7 +6,7 @@ const url = 'https://www.srf.ch/play/tv/popupvideoplayer?id=6db02b8b-975c-4e3e-8 describe('SRF Video Embed', () => { it('should return the correct embed url', () => { const videoId = getVideoId(url); - // 'https://www.srf.ch/play/embed?urn=urn:srf:video:6db02b8b-975c-4e3e-8260-f1e6eca1d8ed&subdivisions=false'; + //const embedUrl = 'https://www.srf.ch/play/embed?urn=urn:srf:video:6db02b8b-975c-4e3e-8260-f1e6eca1d8ed&subdivisions=false'; const embedId = '6db02b8b-975c-4e3e-8260-f1e6eca1d8ed'; expect(videoId).toBe(embedId); }); @@ -17,6 +17,8 @@ describe('SRF Video Embed', () => { const wrapper = mount(SrfEmbed, { props, }); + const embedUrl = 'https://www.srf.ch/play/embed?urn=urn:srf:video:6db02b8b-975c-4e3e-8260-f1e6eca1d8ed&subdivisions=false'; + expect(wrapper.attributes('src')).toBe(embedUrl); }); });