fix unit test

This commit is contained in:
Pierre Noël 2021-04-02 16:51:02 +02:00
parent 62b0f8470c
commit 53e1966173

View File

@ -411,6 +411,18 @@ describe('content-types service', () => {
});
test('Removes ids', () => {
const compoModel = {
attributes: {
name: { type: 'string' },
},
};
global.strapi = {
db: {
getModelsByAttribute: jest.fn(() => [compoModel]),
},
};
const model = {
attributes: {
title: {