From 1aff8b361baaa53859a45740a537211d0f34c65e Mon Sep 17 00:00:00 2001 From: soupette Date: Wed, 29 Apr 2020 13:52:45 +0200 Subject: [PATCH] Change file ext Signed-off-by: soupette --- .../removePasswordFieldsFromData.test.js | 2 +- .../utils/tests/testData.json | 170 ------------------ 2 files changed, 1 insertion(+), 171 deletions(-) delete mode 100644 packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/testData.json diff --git a/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/removePasswordFieldsFromData.test.js b/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/removePasswordFieldsFromData.test.js index b2e2776a3f..41d33f89cf 100644 --- a/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/removePasswordFieldsFromData.test.js +++ b/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/removePasswordFieldsFromData.test.js @@ -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', () => { diff --git a/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/testData.json b/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/testData.json deleted file mode 100644 index cb6fd22727..0000000000 --- a/packages/strapi-plugin-content-manager/admin/src/containers/EditViewDataManagerProvider/utils/tests/testData.json +++ /dev/null @@ -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" - } -}