chore(#206): remove snapshot test and added more relevant tests

This commit is contained in:
hugoazevedosoares
2019-10-18 05:26:08 -03:00
committed by Priscila Oliveira
parent ff791a35f7
commit 302f4dbd89
2 changed files with 2 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ import { DetailContext } from '../../pages/Version';
import UpLinks from './UpLinks';
describe('<UpLinks /> component', () => {
test('should render the component in default state', () => {
test('should return null without packageMeta', () => {
const wrapper = shallow(<UpLinks />);
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper.html()).toBeNull();
});
test('should render the component with uplinks', () => {