Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Typescript #331

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove casting as any
  • Loading branch information
nvlaarhoven committed Apr 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ba0f0d1a45f9c44efd748bc2b8769a14be28876e
17 changes: 8 additions & 9 deletions tests/nav-bar.tsx
Original file line number Diff line number Diff line change
@@ -171,15 +171,14 @@ describe('NavBar', () => {
jest.spyOn(utils, 'getScrollOffset').mockReturnValue({ x: 0, y: 0 });

const fakeElement = document.createElement('div');
fakeElement.getBoundingClientRect = () =>
({
height: 20,
bottom: 0,
left: 0,
right: 0,
width: 0,
top: 0,
} as any);
fakeElement.getBoundingClientRect = () => ({
height: 20,
bottom: 0,
left: 0,
right: 0,
width: 0,
top: 0,
});

jest.spyOn(ReactDOM, 'findDOMNode').mockReturnValue(fakeElement);