Skip to content

Commit e01b887

Browse files
committed
fixing eslint
1 parent 8fd61cb commit e01b887

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/unit/ImageSVGCachePolicyTest.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jest.mock('@libs/getImageRecyclingKey', () =>
3535
const MOCK_STATIC_SOURCE = 42;
3636

3737
function getFirstCallProps(): Record<string, unknown> {
38-
return mockImageComponent.mock.calls.at(0)?.at(0) as Record<string, unknown>;
38+
const firstCall = mockImageComponent.mock.calls.at(0) as unknown[] | undefined;
39+
return firstCall?.at(0) as Record<string, unknown>;
3940
}
4041

4142
describe('ImageSVG cache policy', () => {

0 commit comments

Comments
 (0)