yohei0125 vor 4 Jahren
Ursprung
Commit
ca864ab396
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      packages/app/test/integration/service/v5.migration.test.js

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

@@ -280,7 +280,7 @@ describe('V5 page migration', () => {
 
     test("should replace empty page with same path with new non-empty page and update all related children's parent", async() => {
       const page1 = await Page.findOne({ path: '/normalize_10' });
-      const page2 = await Page.findOne({ path: '/normalize_10/normalize_11_gA', _id: pageId8 });
+      const page2 = await Page.findOne({ path: '/normalize_10/normalize_11_gA', _id: pageId8, isEmpty: true });
       const page3 = await Page.findOne({ path: '/normalize_10/normalize_11_gA', _id: pageId9 }); // not v5
       const page4 = await Page.findOne({ path: '/normalize_10/normalize_11_gA/normalize_11_gB' });
       const page5 = await Page.findOne({ path: '/normalize_10/normalize_12_gC' });