|
|
@@ -641,7 +641,7 @@ describe('PageService page operations with non-public pages', () => {
|
|
|
return duplicatedPage;
|
|
|
};
|
|
|
test('Duplicate single page with GRANT_RESTRICTED', async() => {
|
|
|
- const basePage = await Page.findOne({ path: '/np_duplicate1' }).populate({ path: 'revision', model: 'Revision' });
|
|
|
+ const basePage = await Page.findOne({ path: '/np_duplicate1', grant: Page.GRANT_RESTRICTED }).populate({ path: 'revision', model: 'Revision' });
|
|
|
const baseRevision = basePage.revision;
|
|
|
expectAllToBeTruthy([basePage, baseRevision]);
|
|
|
|