mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
ML: Mock deleteRequest for RemoveAssetDialog
This commit is contained in:
parent
fb8f641096
commit
ac16091628
@ -8,6 +8,11 @@ import { RemoveAssetDialog } from '../RemoveAssetDialog';
|
||||
import en from '../../../translations/en.json';
|
||||
import server from './server';
|
||||
|
||||
jest.mock('../../../utils/deleteRequest', () => ({
|
||||
...jest.requireActual('../../../utils/deleteRequest'),
|
||||
deleteRequest: jest.fn().mockResolvedValue({ id: 1 }),
|
||||
}));
|
||||
|
||||
const messageForPlugin = Object.keys(en).reduce((acc, curr) => {
|
||||
acc[curr] = `upload.${en[curr]}`;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user