|
|
@@ -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() => {
|
|
|
|
|
|
});
|
|
|
});
|