mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 07:51:23 -03:30
stub notifications api in test
This commit is contained in:
parent
60f1919791
commit
b99129c6b2
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user