diff --git a/src/components/UpLinks/UpLinks.test.tsx b/src/components/UpLinks/UpLinks.test.tsx index 76be92a..4fa246f 100644 --- a/src/components/UpLinks/UpLinks.test.tsx +++ b/src/components/UpLinks/UpLinks.test.tsx @@ -6,9 +6,9 @@ import { DetailContext } from '../../pages/Version'; import UpLinks from './UpLinks'; describe(' component', () => { - test('should render the component in default state', () => { + test('should return null without packageMeta', () => { const wrapper = shallow(); - expect(wrapper.html()).toMatchSnapshot(); + expect(wrapper.html()).toBeNull(); }); test('should render the component with uplinks', () => { diff --git a/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap b/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap index 45d0d19..a745fd7 100644 --- a/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap +++ b/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap @@ -1,5 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` component should render the component in default state 1`] = `null`; - exports[` component should render the component with uplinks 1`] = `"
Uplinks
  • npmjs
    over 1 year ago
"`;