Skip to content

Commit

Permalink
Fix rest tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed May 3, 2024
1 parent 462836c commit eb7353a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/volto/src/helpers/Api/Api.plone.rest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})),
})),
}));

Expand Down

0 comments on commit eb7353a

Please sign in to comment.