mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -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';
|
||||
|
||||
jest.mock('../../../api/models/NotificationTemplates');
|
||||
jest.mock('../../../api/models/Notifications');
|
||||
|
||||
const template = {
|
||||
id: 3,
|
||||
@@ -77,6 +78,7 @@ describe('<NotificationTemplateListItem />', () => {
|
||||
template={template}
|
||||
onAddToast={jest.fn()}
|
||||
detailUrl="/notification_templates/3/detail"
|
||||
onAddToast={() => {}}
|
||||
/>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user