forked from sombochea/verdaccio-ui
chore(#206): remove snapshot test and added more relevant tests
This commit is contained in:
committed by
Priscila Oliveira
parent
ff791a35f7
commit
302f4dbd89
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user