Skip to content

Commit

Permalink
Tests for Page404 (#646)
Browse files Browse the repository at this point in the history
* test: add tests for Page404

* fix: fix typo
  • Loading branch information
Stacey-dev authored Nov 5, 2021
1 parent 2765279 commit 469e9e5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/old/lib/components/Errors/Page404.test.tsx
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 src/old/lib/components/Errors/__snapshots__/Page404.test.tsx.snap
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>
`;

0 comments on commit 469e9e5

Please sign in to comment.