Skip to content

Commit f77c765

Browse files
committed
chore: fix linting
1 parent 0332ec1 commit f77c765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/__tests__/transformers/utils/fetchOEmbedData.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)