From b99129c6b2b842b8c0f5de965993d950ab8867e1 Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Mon, 2 Aug 2021 10:05:37 -0700 Subject: [PATCH] stub notifications api in test --- .../NotificationTemplateListItem.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.test.js b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.test.js index 59d417763f..c7c7bddb6d 100644 --- a/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.test.js +++ b/awx/ui/src/screens/NotificationTemplate/NotificationTemplateList/NotificationTemplateListItem.test.js @@ -5,6 +5,7 @@ import { mountWithContexts } from '../../../../testUtils/enzymeHelpers'; import NotificationTemplateListItem from './NotificationTemplateListItem'; jest.mock('../../../api/models/NotificationTemplates'); +jest.mock('../../../api/models/Notifications'); const template = { id: 3, @@ -77,6 +78,7 @@ describe('', () => { template={template} onAddToast={jest.fn()} detailUrl="/notification_templates/3/detail" + onAddToast={() => {}} />