Taichi Masuyama 4 năm trước cách đây
mục cha
commit
4d0507ce30

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

@@ -56,7 +56,8 @@ describe('V5 page migration', () => {
           grantedUsers: [testUser1._id],
           grantedUsers: [testUser1._id],
         },
         },
       ]);
       ]);
-      const rootPage = (await Page.exists({ path: '/' })) ? await Page.insertOne({ path: '/' }) : null;
+      const rootPage = (await Page.exists({ path: '/' })) ? null : await Page.insertOne({ path: '/' });
+
       if (rootPage != null) {
       if (rootPage != null) {
         pages = [rootPage, ...pages];
         pages = [rootPage, ...pages];
       }
       }