From e8f0742b28e0bfb2158aed9465c896247ec08c9b Mon Sep 17 00:00:00 2001 From: cstns Date: Thu, 16 Jan 2025 13:36:10 +0200 Subject: [PATCH 1/2] use camelcase for unit test names --- .../api/{team-device-groups_spec.js => teamDeviceGroups_spec.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename test/unit/forge/ee/routes/api/{team-device-groups_spec.js => teamDeviceGroups_spec.js} (100%) diff --git a/test/unit/forge/ee/routes/api/team-device-groups_spec.js b/test/unit/forge/ee/routes/api/teamDeviceGroups_spec.js similarity index 100% rename from test/unit/forge/ee/routes/api/team-device-groups_spec.js rename to test/unit/forge/ee/routes/api/teamDeviceGroups_spec.js From 7e0abaf20583214a27d505421717c528db789a0f Mon Sep 17 00:00:00 2001 From: cstns Date: Thu, 16 Jan 2025 13:56:06 +0200 Subject: [PATCH 2/2] preserve 1:1 mapping for unit test namespaces --- .../teamDeviceGroups_spec.js => teamDeviceGroups/index_spec.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename test/unit/forge/ee/routes/{api/teamDeviceGroups_spec.js => teamDeviceGroups/index_spec.js} (99%) diff --git a/test/unit/forge/ee/routes/api/teamDeviceGroups_spec.js b/test/unit/forge/ee/routes/teamDeviceGroups/index_spec.js similarity index 99% rename from test/unit/forge/ee/routes/api/teamDeviceGroups_spec.js rename to test/unit/forge/ee/routes/teamDeviceGroups/index_spec.js index 7c71e2a924..89f7381da9 100644 --- a/test/unit/forge/ee/routes/api/teamDeviceGroups_spec.js +++ b/test/unit/forge/ee/routes/teamDeviceGroups/index_spec.js @@ -7,7 +7,7 @@ const { Roles } = FF_UTIL.require('forge/lib/roles') describe('Team Device Groups API', function () { let app - /** @type {import('../../../../../lib/TestModelFactory')} */ + /** @type {import('../../../../../lib/TestModelFactory.js')} */ let factory = null let objectCount = 0 const generateName = (root = 'object') => `${root}-${objectCount++}`