@@ -5,22 +5,6 @@ import provider from './provider.js'
55
66describe ( 'test if provider.find() works correctly' , ( ) => {
77 const cases = [
8- {
9- url : 'https://www.facebook.com/video.php?v=999999999' ,
10- fetchEndpoint : 'https://graph.facebook.com/v16.0/oembed_video' ,
11- } ,
12- {
13- url : 'https://www.facebook.com/someone/photos/somephoto' ,
14- fetchEndpoint : 'https://graph.facebook.com/v16.0/oembed_post' ,
15- } ,
16- {
17- url : 'https://www.facebook.com/someone/page' ,
18- fetchEndpoint : 'https://graph.facebook.com/v16.0/oembed_page' ,
19- } ,
20- {
21- url : 'http://instagram.com/someone/p/somepage' ,
22- fetchEndpoint : 'https://graph.facebook.com/v16.0/instagram_oembed' ,
23- } ,
248 {
259 url : 'https://www.edumedia-sciences.com/en/media/558-heredity' ,
2610 fetchEndpoint : 'https://www.edumedia-sciences.com/oembed.json' ,
@@ -86,6 +70,6 @@ describe('test if provider set/get works correctly', () => {
8670 expect ( provider . set ( providerList ) ) . toEqual ( providerList . length )
8771 const newList = provider . get ( )
8872 expect ( newList . length ) . toEqual ( providerList . length )
89- expect ( newList [ 0 ] . schemes [ 0 ] ) . toEqual ( / s t o r e .a l p h a .c o m \/ ( .* ) / i)
73+ expect ( newList [ 0 ] . schemes [ 0 ] ) . toEqual ( / \/ \/ s t o r e .a l p h a .c o m \/ ( .* ) / i)
9074 } )
9175} )
0 commit comments