AIRAVATA-3694 adding missing mock for test
diff --git a/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js b/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
index f593f2b..d315af4 100644
--- a/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
+++ b/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
@@ -38,6 +38,9 @@
GroupResourceProfileService: {
list: jest.fn(),
},
+ ExperimentArchiveService: {
+ get: jest.fn(),
+ },
},
};
});
@@ -113,6 +116,12 @@
experiment,
})
);
+ services.ExperimentArchiveService.get.mockResolvedValue({
+ archived: false,
+ archive_name: null,
+ created_date: null,
+ max_age: 90,
+ });
// The render method returns a collection of utilities to query your component.
const { findByText, findByPlaceholderText } = render(