mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 09:45:08 +00:00
fix tests
This commit is contained in:
parent
7b14697fa5
commit
c1ce4dc070
@ -147,8 +147,10 @@ describe('Build Component Schema', () => {
|
|||||||
|
|
||||||
const expectedShape = {
|
const expectedShape = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
required: ['data'],
|
||||||
properties: {
|
properties: {
|
||||||
data: {
|
data: {
|
||||||
|
required: [],
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: { test: { type: 'string' } },
|
properties: { test: { type: 'string' } },
|
||||||
},
|
},
|
||||||
@ -237,6 +239,7 @@ describe('Build Component Schema', () => {
|
|||||||
|
|
||||||
const expectedShape = {
|
const expectedShape = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
required: ['locale'],
|
||||||
properties: { test: { type: 'string' } },
|
properties: { test: { type: 'string' } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user