Skip to content

Commit

Permalink
test: removed other snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Valgoi committed Oct 5, 2020
1 parent 19e0176 commit 41ed261
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 66 deletions.
14 changes: 0 additions & 14 deletions src/auth/components/Validator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ describe('Validator.js Test Suite', () => {
afterEach(() => server.resetHandlers());
afterAll(() => server.close());

test('should match snapshot', async () => {
const childText = 'inner text';

render(
<ComponentValidator allowedAuthorities={['canAccessDropApplication']} authorityKey="permissions">
<p>{childText}</p>
</ComponentValidator>,
{ route: '/todo/all' },
);
const child = await waitFor(() => screen.getByText(childText));

expect(child).toMatchSnapshot();
});

test('should appear in the document', async () => {
const childText = 'inner text';

Expand Down
7 changes: 0 additions & 7 deletions src/auth/components/__snapshots__/Validator.test.js.snap

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/Layout/CenteredContent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ describe('Validator.js Test Suite', () => {
render(<CenteredContent />);
});

test('should match snapshot', () => {
const { asFragment } = render(<CenteredContent />);

expect(asFragment()).toMatchSnapshot();
});

test('should render', () => {
const content = screen.getByTestId('centered-content');

Expand Down
10 changes: 0 additions & 10 deletions src/components/Layout/__snapshots__/CenteredContent.test.js.snap

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/Shell/Shell.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ describe('Shell.js Test Suite', () => {
beforeEach(() => {
render(<Shell />);
});

test('should match snapshot', () => {
const shell = screen.getByTestId('shell-wrapper');

expect(shell).toMatchSnapshot();
});

test('should render', () => {
const shell = screen.getByTestId('shell-wrapper');

Expand Down
22 changes: 0 additions & 22 deletions src/components/Shell/__snapshots__/Shell.test.js.snap

This file was deleted.

0 comments on commit 41ed261

Please sign in to comment.