Explorar o código

add parent expectation

yohei0125 %!s(int64=4) %!d(string=hai) anos
pai
achega
d2a24b6ed9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/app/test/integration/service/v5.page.test.ts

+ 2 - 0
packages/app/test/integration/service/v5.page.test.ts

@@ -1046,6 +1046,7 @@ describe('PageService page operations with only public pages', () => {
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
 
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
+      expect(renamedPage.parent).toStrictEqual(newlyCreatedEmptyPage2._id);
 
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();
@@ -1072,6 +1073,7 @@ describe('PageService page operations with only public pages', () => {
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
 
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
+      expect(renamedPage.parent).toStrictEqual(newlyCreatedEmptyPage2._id);
 
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();