kaori пре 4 година
родитељ
комит
9080a588ae
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/test/integration/service/user-groups.test.ts

+ 1 - 1
packages/app/test/integration/service/user-groups.test.ts

@@ -143,7 +143,7 @@ describe('UserGroupService', () => {
   * forceUpdateParents: true
   */
   test('User should be included to parent group (2 groups ver)', async() => {
-    const userGroup4 = await UserGroup.findOne({ _id: groupId4 });
+    const userGroup4 = await UserGroup.findOne({ _id: groupId4, parent: null });
     const userGroup4Relation = await UserGroupRelation.findOne({ relatedGroup:  userGroup4, relatedUser: userId1 });
 
     const forceUpdateParents = true;