mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 23:29:33 +00:00
update test
This commit is contained in:
parent
6168d38617
commit
c115e268cb
@ -32,6 +32,10 @@ const compo2 = {
|
|||||||
name: {
|
name: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
|
category: {
|
||||||
|
// same field name as in compo1 but different type
|
||||||
|
type: 'string',
|
||||||
|
},
|
||||||
category_diff: {
|
category_diff: {
|
||||||
type: 'relation',
|
type: 'relation',
|
||||||
relation: 'oneToOne',
|
relation: 'oneToOne',
|
||||||
@ -136,7 +140,7 @@ describe('CM API - Populate dz', () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
__component: 'default.compo-b',
|
__component: 'default.compo-b',
|
||||||
items: { id: 2, name: 'BBBB', category_diff: data.categories[0].id },
|
items: { id: 2, name: 'BBBB', category_diff: data.categories[0].id, category: 'smthg' },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -162,6 +166,7 @@ describe('CM API - Populate dz', () => {
|
|||||||
__component: 'default.compo-b',
|
__component: 'default.compo-b',
|
||||||
items: {
|
items: {
|
||||||
name: 'BBBB',
|
name: 'BBBB',
|
||||||
|
category: 'smthg',
|
||||||
category_diff: {
|
category_diff: {
|
||||||
name: 'name',
|
name: 'name',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user