瀏覽代碼

add parent expectation

yohei0125 4 年之前
父節點
當前提交
d2a24b6ed9
共有 1 個文件被更改,包括 2 次插入0 次删除
  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();