diff --git a/packages/strapi-plugin-i18n/services/__tests__/content-types.test.js b/packages/strapi-plugin-i18n/services/__tests__/content-types.test.js index 31024b79b6..c5932ccbce 100644 --- a/packages/strapi-plugin-i18n/services/__tests__/content-types.test.js +++ b/packages/strapi-plugin-i18n/services/__tests__/content-types.test.js @@ -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: {