Merge branch 'hotfix/srf-jest-test' into develop
This commit is contained in:
commit
09b6b2479e
|
|
@ -3,10 +3,11 @@ import { mount } from '@vue/test-utils';
|
||||||
import SrfEmbed from '@/components/videos/SrfEmbed.vue';
|
import SrfEmbed from '@/components/videos/SrfEmbed.vue';
|
||||||
|
|
||||||
const url = 'https://www.srf.ch/play/tv/popupvideoplayer?id=6db02b8b-975c-4e3e-8260-f1e6eca1d8ed';
|
const url = 'https://www.srf.ch/play/tv/popupvideoplayer?id=6db02b8b-975c-4e3e-8260-f1e6eca1d8ed';
|
||||||
|
const embedUrl =
|
||||||
|
'https://www.srf.ch/play/embed?urn=urn:srf:video:6db02b8b-975c-4e3e-8260-f1e6eca1d8ed&subdivisions=false';
|
||||||
describe('SRF Video Embed', () => {
|
describe('SRF Video Embed', () => {
|
||||||
it('should return the correct embed url', () => {
|
it('should return the correct embed url', () => {
|
||||||
const videoId = getVideoId(url);
|
const videoId = getVideoId(url);
|
||||||
//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';
|
const embedId = '6db02b8b-975c-4e3e-8260-f1e6eca1d8ed';
|
||||||
expect(videoId).toBe(embedId);
|
expect(videoId).toBe(embedId);
|
||||||
});
|
});
|
||||||
|
|
@ -17,8 +18,6 @@ describe('SRF Video Embed', () => {
|
||||||
const wrapper = mount(SrfEmbed, {
|
const wrapper = mount(SrfEmbed, {
|
||||||
props,
|
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);
|
expect(wrapper.attributes('src')).toBe(embedUrl);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue