add tests for getMember

This commit is contained in:
Matteo Pagliazzi
2016-01-15 19:44:45 +01:00
parent b0caf71641
commit 2ee75c1ad3
4 changed files with 52 additions and 6 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ api.getMember = {
if (!member) throw new NotFound(res.t('userWithIDNotFound', {userId: memberId}));
res.respond(200, member);
// manually call toJSON with minimize: true so empty paths aren't returned
res.respond(200, member.toJSON({minimize: true}));
},
};