diff --git a/src/components/UpLinks/UpLinks.test.tsx b/src/components/UpLinks/UpLinks.test.tsx
index 4fa246fef..92d4f43a5 100644
--- a/src/components/UpLinks/UpLinks.test.tsx
+++ b/src/components/UpLinks/UpLinks.test.tsx
@@ -11,6 +11,24 @@ describe(' component', () => {
expect(wrapper.html()).toBeNull();
});
+ test('should render the component when there is no uplink', () => {
+ const packageMeta = {
+ latest: {
+ name: 'verdaccio',
+ version: '4.0.0',
+ dist: { fileCount: 0, unpackedSize: 0 },
+ },
+ _uplinks: {},
+ };
+
+ const wrapper = mount(
+
+
+
+ );
+ expect(wrapper.html()).toMatchSnapshot();
+ });
+
test('should render the component with uplinks', () => {
const packageMeta = {
latest: {
diff --git a/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap b/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap
index a745fd790..6fbb6b8dd 100644
--- a/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap
+++ b/src/components/UpLinks/__snapshots__/UpLinks.test.tsx.snap
@@ -1,3 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
+exports[` component should render the component when there is no uplink 1`] = `"
verdaccio has no uplinks.
"`;
+
exports[` component should render the component with uplinks 1`] = `"Uplinks
"`;