Change file ext

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-04-29 13:52:45 +02:00
parent b9bd8085d6
commit 1aff8b361b
2 changed files with 1 additions and 171 deletions

View File

@ -1,5 +1,5 @@
import removePasswordFieldsFromData from '../removePasswordFieldsFromData';
import testData from './testData.json';
import testData from './testData';
describe('CONTENT MANAGER | containers | EditViewDataManager | utils', () => {
describe('removePasswordFieldsFromData', () => {

View File

@ -1,170 +0,0 @@
{
"contentType": {
"apiID": "test",
"schema": {
"attributes": {
"created_at": { "type": "timestamp" },
"dz": { "type": "dynamiczone", "components": ["compos.test-compo", "compos.sub-compo"] },
"id": { "type": "integer" },
"name": { "type": "string" },
"notrepeatable": {
"type": "component",
"repeatable": false,
"component": "compos.test-compo"
},
"password": { "type": "password" },
"repeatable": { "type": "component", "repeatable": true, "component": "compos.test-compo" },
"updated_at": { "type": "timestamp" }
}
}
},
"components": {
"compos.sub-compo": {
"uid": "compos.sub-compo",
"category": "compos",
"schema": {
"attributes": {
"id": { "type": "integer" },
"name": { "type": "string" },
"password": { "type": "password" }
}
}
},
"compos.test-compo": {
"uid": "compos.test-compo",
"category": "compos",
"schema": {
"attributes": {
"id": { "type": "integer" },
"name": { "type": "string" },
"password": { "type": "password" },
"subcomponotrepeatable": {
"type": "component",
"repeatable": false,
"component": "compos.sub-compo"
},
"subrepeatable": {
"type": "component",
"repeatable": true,
"component": "compos.sub-compo"
}
}
}
}
},
"modifiedData": {
"created_at": "2020-04-28T13:22:13.033Z",
"dz": [
{ "__component": "compos.sub-compo", "id": 7, "name": "name", "password": "password" },
{
"id": 4,
"name": "name",
"password": "password",
"subcomponotrepeatable": null,
"subrepeatable": [],
"__component": "compos.test-compo"
},
{
"id": 5,
"name": "name",
"password": "password",
"subcomponotrepeatable": { "id": 9, "name": "name", "password": "password" },
"subrepeatable": [{ "id": 8, "name": "name", "password": "password" }],
"__component": "compos.test-compo"
},
{
"id": 6,
"name": null,
"password": null,
"subcomponotrepeatable": null,
"subrepeatable": [],
"__component": "compos.test-compo"
}
],
"id": 1,
"name": "name",
"notrepeatable": {
"id": 1,
"name": "name",
"password": "password",
"subcomponotrepeatable": { "id": 4, "name": "name", "password": "password" },
"subrepeatable": [
{ "id": 1, "name": "name", "password": "password" },
{ "id": 2, "name": "name", "password": "password" },
{ "id": 3, "name": "name", "password": "password" }
]
},
"password": "password",
"repeatable": [
{
"id": 2,
"name": "name",
"password": "password",
"subrepeatable": [{ "id": 5, "name": "name", "password": "password" }],
"subcomponotrepeatable": { "id": 6, "name": "name", "password": "password" }
},
{
"id": 3,
"name": "name",
"password": "password",
"subrepeatable": [],
"subcomponotrepeatable": null
}
],
"updated_at": "2020-04-28T13:22:13.033Z"
},
"expectedModifiedData": {
"created_at": "2020-04-28T13:22:13.033Z",
"dz": [
{ "__component": "compos.sub-compo", "id": 7, "name": "name" },
{
"id": 4,
"name": "name",
"subcomponotrepeatable": null,
"subrepeatable": [],
"__component": "compos.test-compo"
},
{
"id": 5,
"name": "name",
"subcomponotrepeatable": { "id": 9, "name": "name" },
"subrepeatable": [{ "id": 8, "name": "name" }],
"__component": "compos.test-compo"
},
{
"id": 6,
"name": null,
"subcomponotrepeatable": null,
"subrepeatable": [],
"__component": "compos.test-compo"
}
],
"id": 1,
"name": "name",
"notrepeatable": {
"id": 1,
"name": "name",
"subcomponotrepeatable": { "id": 4, "name": "name" },
"subrepeatable": [
{ "id": 1, "name": "name" },
{ "id": 2, "name": "name" },
{ "id": 3, "name": "name" }
]
},
"repeatable": [
{
"id": 2,
"name": "name",
"subrepeatable": [{ "id": 5, "name": "name" }],
"subcomponotrepeatable": { "id": 6, "name": "name" }
},
{
"id": 3,
"name": "name",
"subrepeatable": [],
"subcomponotrepeatable": null
}
],
"updated_at": "2020-04-28T13:22:13.033Z"
}
}