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

+ 1 - 3
packages/app/test/integration/service/v5.non-public-page.test.ts

@@ -410,9 +410,6 @@ describe('PageService page operations with non-public pages', () => {
         expect(_pageT.status).toBe(Page.STATUS_DELETED);
         expect(_pageT.status).toBe(Page.STATUS_DELETED);
       });
       });
     });
     });
-    describe('Delete multiple pages with grant RESTRICTED', () => {
-      test('should be able to delete', async() => {});
-    });
     describe('Delete single page with grant USER_GROUP', () => {
     describe('Delete single page with grant USER_GROUP', () => {
       test('should be able to delete', async() => {
       test('should be able to delete', async() => {
         const path = '/npdel2_ug';
         const path = '/npdel2_ug';
@@ -426,6 +423,7 @@ describe('PageService page operations with non-public pages', () => {
         const _page1 = await Page.findOne({ path: `/trash${path}`, grantedGroup: groupIdA });
         const _page1 = await Page.findOne({ path: `/trash${path}`, grantedGroup: groupIdA });
         expect(_pageN).toBeNull();
         expect(_pageN).toBeNull();
         expect(_page1).toBeTruthy();
         expect(_page1).toBeTruthy();
+        expect(_page1.status).toBe(Page.STATUS_DELETED);
       });
       });
     });
     });
     describe('Delete multiple pages with grant USER_GROUP', () => {
     describe('Delete multiple pages with grant USER_GROUP', () => {