stub notifications api in test

This commit is contained in:
Keith J. Grant 2021-08-02 10:05:37 -07:00
parent 60f1919791
commit b99129c6b2

View File

@ -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>