Skip to content

Commit

Permalink
test: Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Aug 17, 2023
1 parent c0f3da3 commit 45756a3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Layout/LeftColumnLayout.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import renderer from 'react-test-renderer';
import LeftColumnLayout from './LeftColumnLayout';

describe('LeftColumnLayout', () => {
it('renders correctly', () => {
const tree = renderer.create(<LeftColumnLayout />).toJSON();
expect(tree).toMatchSnapshot();
});
});
41 changes: 41 additions & 0 deletions src/components/Layout/__snapshots__/LeftColumnLayout.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`LeftColumnLayout renders correctly 1`] = `
<div>
<div
className="ui container"
>
<div
className="sui-layout-header"
>
<div
className="sui-layout-header__inner"
/>
</div>
</div>
<div
className="ui container stackable two column grid body-content"
>
<div
className="row"
>
<div
className="three wide widescreen column"
>
<div />
</div>
<div
className="nine wide widescreen column"
>
<div />
<div />
</div>
</div>
</div>
<div
className="ui container grid body-footer"
>
<div />
</div>
</div>
`;

0 comments on commit 45756a3

Please sign in to comment.