generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add tests for Page404 * fix: fix typo
- Loading branch information
1 parent
2765279
commit 469e9e5
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import Page404 from './Page404'; | ||
|
||
describe('Page404', () => { | ||
it('should render component and match snapshot', () => { | ||
const { asFragment } = render(<Page404 />); | ||
expect(asFragment()).toMatchSnapshot(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/old/lib/components/Errors/__snapshots__/Page404.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Page404 should render component and match snapshot 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
style="margin: auto;" | ||
> | ||
<h1 | ||
class="MuiTypography-root MuiTypography-h1 MuiTypography-alignCenter" | ||
> | ||
На жаль, таку сторінку не знайдено. | ||
</h1> | ||
</div> | ||
</DocumentFragment> | ||
`; |