diff --git a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/tests/reducer.test.js b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/tests/reducer.test.js index e3e4cafbd4..532fb66b2e 100644 --- a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/tests/reducer.test.js +++ b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/tests/reducer.test.js @@ -147,7 +147,7 @@ describe('ADMIN | COMPONENTS | Permissions | reducer', () => { }); describe('ON_CHANGE_TOGGLE_PARENT_CHECKBOX', () => { - it('should set all the deepest values of the create action to true', () => { + it('should set all the leafs of the create action to true', () => { const action = { type: 'ON_CHANGE_TOGGLE_PARENT_CHECKBOX', keys: 'restaurant..create', diff --git a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/tests/updateValues.test.js b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/tests/updateValues.test.js index deb9a302cb..d3319d783b 100644 --- a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/tests/updateValues.test.js +++ b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/tests/updateValues.test.js @@ -14,7 +14,7 @@ describe('ADMIN | COMPONENTS | Permissions | utils | updateValues', () => { expect(updateValues(simpleObject, false)).toEqual(expected); }); - it('set the deepest values of an object with the second argument passed to the function', () => { + it('set the leafs of an object with the second argument passed to the function', () => { const complexeObject = { enabled: true, conditions: 'test', diff --git a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/updateValues.js b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/updateValues.js index 193ce4f002..63a7e19511 100644 --- a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/updateValues.js +++ b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/Permissions/utils/updateValues.js @@ -4,7 +4,7 @@ import { isObject } from 'lodash'; * Sets all the none object values of an object to the given one * @param {object} obj * @param {boolean} valueToSet The value we want to set - * It preserves the shape of the object, it only modifies the "deepest value" + * It preserves the shape of the object, it only modifies the leafs * of an object. * This utility is very helpful when dealing with parent<>children checkboxes */ diff --git a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/createArrayOfValues.test.js b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/createArrayOfValues.test.js index fe20a21ab7..fab83054d7 100644 --- a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/createArrayOfValues.test.js +++ b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/createArrayOfValues.test.js @@ -10,7 +10,7 @@ describe('ADMIN | COMPONENTS | PERMISSIONS | ContentTypeCollapse | utils', () => expect(createArrayOfValues('null')).toEqual([]); }); - it('should return an array with the deepest values from the object', () => { + it('should return an array with the leafs from the object', () => { const data = { collectionTypes: { address: { diff --git a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/getCheckboxState.test.js b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/getCheckboxState.test.js index e9a633ee5b..495f0df520 100644 --- a/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/getCheckboxState.test.js +++ b/packages/strapi-admin/ee/admin/containers/Roles/CreatePage/utils/tests/getCheckboxState.test.js @@ -8,7 +8,7 @@ describe('ADMIN | COMPONENTS | PERMISSIONS | ContentTypeCollapse | utils | getCh expect(getCheckboxState({})).toEqual(expected); }); - it('should return an object with all the keys set to false when all the deepest values of the object are falsy', () => { + it('should return an object with all the keys set to false when all the leafs of the object are falsy', () => { const complexeData = { f1: false, f2: { @@ -27,7 +27,7 @@ describe('ADMIN | COMPONENTS | PERMISSIONS | ContentTypeCollapse | utils | getCh expect(getCheckboxState(complexeData)).toEqual(expected); }); - it('should return an object with hasAllActionsSelected to false and hasSomeActionsSelected to true when some of the deepest values of the object are falsy', () => { + it('should return an object with hasAllActionsSelected to false and hasSomeActionsSelected to true when some of the leafs of the object are falsy', () => { const complexeData = { f1: true, f2: { @@ -45,7 +45,7 @@ describe('ADMIN | COMPONENTS | PERMISSIONS | ContentTypeCollapse | utils | getCh expect(getCheckboxState(complexeData)).toEqual(expected); }); - it('should return an object with hasAllActionsSelected key set to true and the other set to false when all the deepest values of the object are truthy', () => { + it('should return an object with hasAllActionsSelected key set to true and the other set to false when all the leafs of the object are truthy', () => { const complexeData = { f1: true, f2: {