Skip to content

Commit

Permalink
More typing fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Oct 2, 2020
1 parent 33ef0ad commit 01ace89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export const PingListComponent = (props: Props) => {
useEffect(() => {
const parsed = JSON.parse(expandedIdsToRemove);
if (parsed.length) {
parsed.forEach((p) => {
delete expandedRows[p];
parsed.forEach((docId: string) => {
delete expandedRows[docId];
});
setExpandedRows(expandedRows);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ import * as reactUse from 'react-use';
import { StepScreenshotDisplay } from '../step_screenshot_display';

describe('StepScreenshotDisplayProps', () => {
// @ts-ignore missing fields don't matter in this test, the component in question only relies on `isIntersecting`
jest.spyOn(reactUse, 'useIntersection').mockImplementation(() => ({
boundingClientRect: null,
intersectionRatio: null,
intersectionRect: null,
rootBounds: null,
target: null,
time: null,
isIntersecting: true,
}));

Expand Down

0 comments on commit 01ace89

Please sign in to comment.