kaori 3 лет назад
Родитель
Сommit
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;