mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
stub notifications api in test
This commit is contained in:
@@ -5,6 +5,7 @@ import { mountWithContexts } from '../../../../testUtils/enzymeHelpers';
|
|||||||
import NotificationTemplateListItem from './NotificationTemplateListItem';
|
import NotificationTemplateListItem from './NotificationTemplateListItem';
|
||||||
|
|
||||||
jest.mock('../../../api/models/NotificationTemplates');
|
jest.mock('../../../api/models/NotificationTemplates');
|
||||||
|
jest.mock('../../../api/models/Notifications');
|
||||||
|
|
||||||
const template = {
|
const template = {
|
||||||
id: 3,
|
id: 3,
|
||||||
@@ -77,6 +78,7 @@ describe('<NotificationTemplateListItem />', () => {
|
|||||||
template={template}
|
template={template}
|
||||||
onAddToast={jest.fn()}
|
onAddToast={jest.fn()}
|
||||||
detailUrl="/notification_templates/3/detail"
|
detailUrl="/notification_templates/3/detail"
|
||||||
|
onAddToast={() => {}}
|
||||||
/>
|
/>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user