mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 13:55:20 +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', () => {
|
test('Removes ids', () => {
|
||||||
|
const compoModel = {
|
||||||
|
attributes: {
|
||||||
|
name: { type: 'string' },
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
global.strapi = {
|
||||||
|
db: {
|
||||||
|
getModelsByAttribute: jest.fn(() => [compoModel]),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const model = {
|
const model = {
|
||||||
attributes: {
|
attributes: {
|
||||||
title: {
|
title: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user