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