File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/__tests__/transformers/utils Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ describe(`fetchOEmbedData`, () => {
4747 ) ;
4848
4949 return fetchOEmbedData ( URL ) . catch ( ( err ) => {
50+ // eslint-disable-next-line jest/no-conditional-expect
5051 expect ( err ) . toMatchInlineSnapshot (
5152 `[Error: Request to https://google.com returned non-OK status (403)]`
5253 ) ;
@@ -94,11 +95,14 @@ describe(`fetchOEmbedData`, () => {
9495
9596 return fetchOEmbedData ( URL ) . catch ( ( error ) => {
9697 // original request + 3 retries
98+ // eslint-disable-next-line jest/no-conditional-expect
9799 expect ( fetch ) . toBeCalledTimes ( 4 ) ;
98100
99101 // 3 retries
102+ // eslint-disable-next-line jest/no-conditional-expect
100103 expect ( setTimeout ) . toBeCalledTimes ( 3 ) ;
101104
105+ // eslint-disable-next-line jest/no-conditional-expect
102106 expect ( error ) . toEqual ( socketError ) ;
103107 } ) ;
104108 } ) ;
You can’t perform that action at this time.
0 commit comments