yohei0125 4 лет назад
Родитель
Сommit
da817a9e1a
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/app/test/integration/service/pagev5.test.ts

+ 3 - 3
packages/app/test/integration/service/pagev5.test.ts

@@ -58,9 +58,6 @@ describe('PageService page operations with only public pages', () => {
 
 
     xssSpy = jest.spyOn(crowi.xss, 'process').mockImplementation(path => path);
     xssSpy = jest.spyOn(crowi.xss, 'process').mockImplementation(path => path);
 
 
-    /*
-     * Rename
-     */
     // delete root page if any created by other test file
     // delete root page if any created by other test file
     const pages = await Page.find({ path: '/' });
     const pages = await Page.find({ path: '/' });
     if (pages.length > 0) {
     if (pages.length > 0) {
@@ -69,6 +66,9 @@ describe('PageService page operations with only public pages', () => {
     // then create new root page
     // then create new root page
     rootPage = await Page.create('/', 'body', dummyUser1._id, {});
     rootPage = await Page.create('/', 'body', dummyUser1._id, {});
 
 
+    /*
+     * Rename
+     */
     const pageIdForRename1 = new mongoose.Types.ObjectId();
     const pageIdForRename1 = new mongoose.Types.ObjectId();
     const pageIdForRename2 = new mongoose.Types.ObjectId();
     const pageIdForRename2 = new mongoose.Types.ObjectId();
     const pageIdForRename3 = new mongoose.Types.ObjectId();
     const pageIdForRename3 = new mongoose.Types.ObjectId();