mirror of
https://github.com/strapi/strapi.git
synced 2025-09-17 20:40:17 +00:00
fix: single types unit test
This commit is contained in:
parent
450b9fd7cf
commit
00b166d439
@ -3,6 +3,13 @@
|
||||
const createContext = require('../../../../../../test/helpers/create-context');
|
||||
const singleTypes = require('../single-types');
|
||||
|
||||
// Mock the populate functions
|
||||
jest.mock('../../services/utils/populate', () => ({
|
||||
...jest.requireActual('../../services/utils/populate'),
|
||||
getDeepPopulate: () => ({}),
|
||||
getQueryPopulate: async () => ({}),
|
||||
}));
|
||||
|
||||
describe('Single Types', () => {
|
||||
test('Successfull find', async () => {
|
||||
const state = {
|
||||
@ -36,6 +43,7 @@ describe('Single Types', () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
getModel: jest.fn(),
|
||||
plugins: {
|
||||
'content-manager': {
|
||||
services: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user