From fd8081ed96629628783818f4f8d95917005ba2bf Mon Sep 17 00:00:00 2001 From: Kyle Watson Date: Mon, 20 Nov 2023 11:08:14 +0100 Subject: [PATCH] refactor(backstage-plugin): Remove comment for test Remove the comment about extracting the test for the hook. Tests should follow user usage. Addresses #71 --- .../components/DashboardComponent/DashboardComponent.test.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/DashboardComponent.test.tsx b/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/DashboardComponent.test.tsx index 7f8dc81..1bf5dbb 100644 --- a/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/DashboardComponent.test.tsx +++ b/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/DashboardComponent.test.tsx @@ -178,7 +178,6 @@ describe('DashboardComponent', () => { expect(queryAllByText('Error: Failed to fetch')).toHaveLength(2); }); - // TODO #71: Replace this with a test for MetricDataHook/MetricContext specifically it('should show error if there are no datapoints', async () => { server.use( rest.get(metricUrl, async (_, res, ctx) => {