Răsfoiți Sursa

change test title

yohei0125 4 ani în urmă
părinte
comite
b60fbdb36f
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/app/test/integration/models/v5.page.test.js

+ 2 - 2
packages/app/test/integration/models/v5.page.test.js

@@ -148,7 +148,7 @@ describe('Page', () => {
   describe('update', () => {
 
     describe('change grant', () => {
-      test('Changing grant of only-child page to RESTRICTED will delete its empty parent page', async() => {
+      test('Changing grant from PUBLIC to RESTRICTED of an only-child page will delete its empty parent page', async() => {
         const page1 = await Page.findOne({ path: '/mup1_empty', isEmpty: true });
         const page2 = await Page.findOne({ path: '/mup1_empty/mup2_public' }).populate({ path: 'revision', model: 'Revision' });
         const revision = page2.revision;
@@ -164,7 +164,7 @@ describe('Page', () => {
         expect(page2AU).toBeTruthy();
         expect(page1AU).toBeNull();
       });
-      test('remove page with GRANT_RESTRICTED will create empty ancestors', async() => {
+      test('Changing grant from RESTRICTED to PUBLIC of a page with no ancestors will create ancestors with isEmpty: true', async() => {
 
       });
     });