@ -298,6 +298,10 @@ router.post('documents.starred', auth(), pagination(), async ctx => {
|
|||||||
collectionId: collectionIds,
|
collectionId: collectionIds,
|
||||||
},
|
},
|
||||||
include: [
|
include: [
|
||||||
|
{
|
||||||
|
model: Collection,
|
||||||
|
as: 'collection',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
model: Star,
|
model: Star,
|
||||||
as: 'starred',
|
as: 'starred',
|
||||||
|
@ -955,6 +955,7 @@ describe('#documents.starred', async () => {
|
|||||||
expect(res.status).toEqual(200);
|
expect(res.status).toEqual(200);
|
||||||
expect(body.data.length).toEqual(1);
|
expect(body.data.length).toEqual(1);
|
||||||
expect(body.data[0].id).toEqual(document.id);
|
expect(body.data[0].id).toEqual(document.id);
|
||||||
|
expect(body.policies[0].abilities.update).toEqual(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should require authentication', async () => {
|
it('should require authentication', async () => {
|
||||||
|
Reference in New Issue
Block a user