From 51ad477b7bf46157f230b68da5db5f2177ca6dc0 Mon Sep 17 00:00:00 2001 From: Kevin Aleman Date: Mon, 1 Sep 2025 09:15:33 -0600 Subject: [PATCH 1/2] fix --- .../unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts b/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts index e77a2b0380bdd..3c627735523b8 100644 --- a/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts +++ b/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts @@ -8,7 +8,7 @@ type RestrictQueryParams = { userId?: string; }; -describe('restrictQuery', () => { +describe.only('restrictQuery', () => { const modulePath = '../../../../../app/livechat-enterprise/server/lib/restrictQuery'; // Helper to require the SUT with injected stubs @@ -39,7 +39,7 @@ describe('restrictQuery', () => { '@rocket.chat/models': { LivechatDepartment: { find: findStub }, }, - '../methods/getUnitsFromUserRoles': { + '@rocket.chat/omni-core-ee': { getUnitsFromUser: getUnitsFromUserStub, }, './logger': { From 90ddc35106b526174a5bd9d3bfa171f06fbfe8b7 Mon Sep 17 00:00:00 2001 From: Kevin Aleman Date: Mon, 1 Sep 2025 09:16:20 -0600 Subject: [PATCH 2/2] Apply suggestion from @KevLehman --- .../unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts b/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts index 3c627735523b8..5dc3adb558fc6 100644 --- a/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts +++ b/apps/meteor/ee/tests/unit/apps/livechat-enterprise/lib/restrictQuery.tests.ts @@ -8,7 +8,7 @@ type RestrictQueryParams = { userId?: string; }; -describe.only('restrictQuery', () => { +describe('restrictQuery', () => { const modulePath = '../../../../../app/livechat-enterprise/server/lib/restrictQuery'; // Helper to require the SUT with injected stubs