1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 22:33:17 +00:00
musix-oss/node_modules/video-thumbnail-url/tests/vimeo.test.js

22 lines
840 B
JavaScript
Raw Normal View History

2020-03-03 20:30:50 +00:00
import { testService } from './util';
const VALID = [
'http://vimeo.com/167195274',
'http://vimeo.com/167195274?foo=bar',
'http://player.vimeo.com/video/167195274',
'http://player.vimeo.com/video/167195274?title=0&byline=0&portrait=0',
'https://vimeo.com/channels/staffpicks/167195274',
'https://vimeo.com/groups/motion/videos/169674362'
];
const INVALID = [
'http://www.delfi.lt/news/ringas/lit/a-tapinas-viena-ministres-diena.d?id=71476806',
'http://video.com/6701902',
'http://vimeo.com',
'http://vimeo.com/videoschool',
'http://vimeo.com/videoschool/archive/behind_the_scenes',
'http://vimeo.com/forums/screening_room',
'http://vimeo.com/forums/screening_room/topic:42708'
];
testService('vimeo', VALID, INVALID, /^http(s)?\:\/\/i\.vimeocdn\.com\/video\/(\d)+\_640\.jpg$/);