From a4728e1eddb88c57820871b931c874914bed4951 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Thu, 19 Dec 2024 11:37:19 +1030 Subject: [PATCH] fix: test uses contentId=undefined, so made this param optional in the test route. --- src/content-tags-drawer/ContentTagsDrawer.test.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content-tags-drawer/ContentTagsDrawer.test.jsx b/src/content-tags-drawer/ContentTagsDrawer.test.jsx index 426f0d5323..0ff99eaf27 100644 --- a/src/content-tags-drawer/ContentTagsDrawer.test.jsx +++ b/src/content-tags-drawer/ContentTagsDrawer.test.jsx @@ -18,7 +18,7 @@ import { } from './data/api.mocks'; import { getContentTaxonomyTagsApiUrl } from './data/api'; -const path = '/content/:contentId/*'; +const path = '/content/:contentId?/*'; const mockOnClose = jest.fn(); const mockSetBlockingSheet = jest.fn(); const mockNavigate = jest.fn();