|
@@ -333,7 +333,7 @@ describe('Page', () => {
|
|
|
describe('PageQueryBuilder.addConditionToListWithDescendants', () => {
|
|
describe('PageQueryBuilder.addConditionToListWithDescendants', () => {
|
|
|
test('can retrieve descendants of /page', async() => {
|
|
test('can retrieve descendants of /page', async() => {
|
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
|
- builder.addConditionToListWithDescendants('/page', {});
|
|
|
|
|
|
|
+ builder.addConditionToListWithDescendants('/page');
|
|
|
|
|
|
|
|
const result = await builder.query.exec();
|
|
const result = await builder.query.exec();
|
|
|
|
|
|
|
@@ -346,7 +346,7 @@ describe('Page', () => {
|
|
|
|
|
|
|
|
test('can retrieve descendants of /page1', async() => {
|
|
test('can retrieve descendants of /page1', async() => {
|
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
|
- builder.addConditionToListWithDescendants('/page1/', {});
|
|
|
|
|
|
|
+ builder.addConditionToListWithDescendants('/page1/');
|
|
|
|
|
|
|
|
const result = await builder.query.exec();
|
|
const result = await builder.query.exec();
|
|
|
|
|
|
|
@@ -362,7 +362,7 @@ describe('Page', () => {
|
|
|
describe('PageQueryBuilder.addConditionToListOnlyDescendants', () => {
|
|
describe('PageQueryBuilder.addConditionToListOnlyDescendants', () => {
|
|
|
test('can retrieve only descendants of /page', async() => {
|
|
test('can retrieve only descendants of /page', async() => {
|
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
|
- builder.addConditionToListOnlyDescendants('/page', {});
|
|
|
|
|
|
|
+ builder.addConditionToListOnlyDescendants('/page');
|
|
|
|
|
|
|
|
const result = await builder.query.exec();
|
|
const result = await builder.query.exec();
|
|
|
|
|
|
|
@@ -375,7 +375,7 @@ describe('Page', () => {
|
|
|
|
|
|
|
|
test('can retrieve only descendants of /page1', async() => {
|
|
test('can retrieve only descendants of /page1', async() => {
|
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
const builder = new PageQueryBuilder(Page.find());
|
|
|
- builder.addConditionToListOnlyDescendants('/page1', {});
|
|
|
|
|
|
|
+ builder.addConditionToListOnlyDescendants('/page1');
|
|
|
|
|
|
|
|
const result = await builder.query.exec();
|
|
const result = await builder.query.exec();
|
|
|
|
|
|