Use valid test URLs

This commit is contained in:
Lorenz Hübschle-Schneider 2014-08-09 14:06:34 +01:00 committed by David Cormier
parent 230e33136c
commit a46df4baab

View file

@ -31,8 +31,8 @@ describe('filter', function() {
it('should recognize spotify tracks', inject(function(plugins) { it('should recognize spotify tracks', inject(function(plugins) {
expectTheseMessagesToContain([ expectTheseMessagesToContain([
'https://spotify:track:3AAAAAAAAAAAAAAAAAAAAA', 'spotify:track:6JEK0CvvjDjjMUBFoXShNZ',
'https://open.spotify.com/track/3AAAAAAAAAAAAAAAAAAAAA' 'https://open.spotify.com/track/6JEK0CvvjDjjMUBFoXShNZ'
], ],
'Spotify track', 'Spotify track',
plugins); plugins);
@ -45,8 +45,9 @@ describe('filter', function() {
'http://www.youtube.com/watch?v=dQw4w9WgXcQ', 'http://www.youtube.com/watch?v=dQw4w9WgXcQ',
'http://youtu.be/J6vIS8jb6Fs', 'http://youtu.be/J6vIS8jb6Fs',
'https://youtu.be/J6vIS8jb6Fs', 'https://youtu.be/J6vIS8jb6Fs',
'http://www.youtube.com/embed?v=dQw4w9WgXcQ', 'http://www.youtube.com/embed/dQw4w9WgXcQ',
'https://www.youtube.com/embed?v=dQw4w9WgXcQ' 'https://www.youtube.com/embed/dQw4w9WgXcQ',
'youtu.be/dQw4w9WgXcQ'
], ],
'YouTube video', 'YouTube video',
plugins); plugins);
@ -73,10 +74,11 @@ describe('filter', function() {
it('should recognize images', inject(function(plugins) { it('should recognize images', inject(function(plugins) {
expectTheseMessagesToContain([ expectTheseMessagesToContain([
'http://test.png', 'http://i.imgur.com/BTNIDBR.gif',
'https://test.jpg', 'https://i.imgur.com/1LmDmct.jpg',
'https://test.jpeg', 'http://i.imgur.com/r4FKrnu.jpeg',
'https://test.gif', 'https://4z2.de/gb-mobile-new.png',
'http://static.weechat.org/images/screenshots/relay/medium/glowing-bear.png',
], ],
'image', 'image',
plugins); plugins);