mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
fix unit test
This commit is contained in:
parent
62b0f8470c
commit
53e1966173
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user