From 302f4dbd898fbcc608cff22007d319bf6b5c1689 Mon Sep 17 00:00:00 2001 From: hugoazevedosoares Date: Fri, 18 Oct 2019 05:26:08 -0300 Subject: [PATCH] chore(#206): remove snapshot test and added more relevant tests --- src/components/UpLinks/UpLinks.test.tsx | 4 ++-- src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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
"`;