yohei0125 4 лет назад
Родитель
Сommit
c3580377f0
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/app/test/integration/service/v5.migration.test.js

+ 4 - 0
packages/app/test/integration/service/v5.migration.test.js

@@ -183,6 +183,7 @@ describe('V5 page migration', () => {
         grant: Page.GRANT_PUBLIC,
         grant: Page.GRANT_PUBLIC,
         isEmpty: true,
         isEmpty: true,
         parent: rootPage._id,
         parent: rootPage._id,
+        descendantCount: 3,
       },
       },
       {
       {
         _id: pageId8,
         _id: pageId8,
@@ -190,6 +191,7 @@ describe('V5 page migration', () => {
         grant: Page.GRANT_PUBLIC,
         grant: Page.GRANT_PUBLIC,
         isEmpty: true,
         isEmpty: true,
         parent: pageId7,
         parent: pageId7,
+        descendantCount: 1,
       },
       },
       {
       {
         _id: pageId9,
         _id: pageId9,
@@ -198,6 +200,7 @@ describe('V5 page migration', () => {
         grantedGroup: groupIdB,
         grantedGroup: groupIdB,
         grantedUsers: [testUser1._id],
         grantedUsers: [testUser1._id],
         parent: pageId8,
         parent: pageId8,
+        descendantCount: 0,
       },
       },
       {
       {
         _id: pageId10,
         _id: pageId10,
@@ -206,6 +209,7 @@ describe('V5 page migration', () => {
         grantedGroup: groupIdC,
         grantedGroup: groupIdC,
         grantedUsers: [testUser1._id],
         grantedUsers: [testUser1._id],
         parent: pageId7,
         parent: pageId7,
+        descendantCount: 0,
       },
       },
 
 
     ]);
     ]);