@@ -29,27 +29,27 @@ describe('Fetch', () => {
29
29
. then ( res => expect ( res ) . to . deep . equal ( null ) ) ;
30
30
} ) ;
31
31
32
- it ( 'should be rejected with ProviderRequestError if status is 404 and failSoft -> false' , ( ) => {
32
+ it ( 'should be rejected with RequestError if status is 404 and failSoft -> false' , ( ) => {
33
33
const url = `${ serverUrl } status/404` ;
34
34
const oEmbed = embedify . create ( { failSoft : false } ) ;
35
35
36
36
return expect ( oEmbed . fetch ( url ) )
37
- . to . be . rejectedWith ( oEmbed . ProviderRequestError ) ;
37
+ . to . be . rejectedWith ( oEmbed . RequestError ) ;
38
38
} ) ;
39
39
40
- it ( 'should be rejected with ProviderRequestError if status is 500 and failSoft -> true' , ( ) => {
40
+ it ( 'should be rejected with RequestError if status is 500 and failSoft -> true' , ( ) => {
41
41
const url = `${ serverUrl } status/500` ;
42
42
const oEmbed = embedify . create ( { failSoft : true } ) ;
43
43
44
44
return expect ( oEmbed . fetch ( url ) )
45
- . to . be . rejectedWith ( oEmbed . ProviderRequestError ) ;
45
+ . to . be . rejectedWith ( oEmbed . RequestError ) ;
46
46
} ) ;
47
47
48
- it ( 'should be rejected with ProviderRequestError if status is 500 and failSoft -> false' , ( ) => {
48
+ it ( 'should be rejected with RequestError if status is 500 and failSoft -> false' , ( ) => {
49
49
const url = `${ serverUrl } status/500` ;
50
50
const oEmbed = embedify . create ( { failSoft : false } ) ;
51
51
52
52
return expect ( oEmbed . fetch ( url ) )
53
- . to . be . rejectedWith ( oEmbed . ProviderRequestError ) ;
53
+ . to . be . rejectedWith ( oEmbed . RequestError ) ;
54
54
} ) ;
55
55
} ) ;
0 commit comments