Skip to content

Commit

Permalink
Add tests to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Aug 25, 2023
1 parent b0b0077 commit b112058
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/ItemView/MoreLikeThis.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import renderer from 'react-test-renderer';

import MoreLikeThis from './MoreLikeThis';

jest.mock('@eeacms/search', () => ({
runRequest: jest.fn(),
}));

describe('MoreLikeThis', () => {
it('renders correctly', () => {
const tree = renderer.create(<MoreLikeThis appConfig={{}} />).toJSON();
expect(tree).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`MoreLikeThis renders correctly 1`] = `null`;

0 comments on commit b112058

Please sign in to comment.