Skip to content

Commit

Permalink
Fix error about logging after tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjball committed Aug 20, 2021
1 parent 312f965 commit e4d43fb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions frontend/__mocks__/next/link.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const mockLink = ({ children, href }) => <children.type {...children.props} href={href} />

export default mockLink
1 change: 0 additions & 1 deletion frontend/setupTests.js

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/tests/snapshots/__snapshots__/login.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ exports[`renders Login correctly 1`] = `
<a
className="callToActionLink"
href="/register"
onClick={[Function]}
onMouseEnter={[Function]}
>
Register for an account
</a>
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/snapshots/__snapshots__/passport.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ exports[`renders correctly 1`] = `
<a
className="callToActionLink"
href="/dashboard"
onClick={[Function]}
onMouseEnter={[Function]}
>
Return to dashboard
</a>
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/snapshots/__snapshots__/register.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ exports[`renders Register correctly 1`] = `
<a
className="callToActionLink"
href="/login"
onClick={[Function]}
onMouseEnter={[Function]}
>
Login instead
</a>
Expand Down

0 comments on commit e4d43fb

Please sign in to comment.