diff --git a/packages/volto/src/helpers/Api/Api.plone.rest.test.js b/packages/volto/src/helpers/Api/Api.plone.rest.test.js index 80e18682d1..81fa1104b2 100644 --- a/packages/volto/src/helpers/Api/Api.plone.rest.test.js +++ b/packages/volto/src/helpers/Api/Api.plone.rest.test.js @@ -3,12 +3,14 @@ import Api from './Api'; jest.mock('superagent', () => ({ get: jest.fn((url) => ({ - url, - query: jest.fn(), - set: jest.fn(), - type: jest.fn(), - send: jest.fn(), - end: jest.fn(), + redirects: jest.fn(() => ({ + url, + query: jest.fn(), + set: jest.fn(), + type: jest.fn(), + send: jest.fn(), + end: jest.fn(), + })), })), }));