Addressed PR feedback

This commit is contained in:
Jori Lallo
2017-12-30 19:48:43 +02:00
parent 8f045b5c34
commit 94dfebe5a0
4 changed files with 33 additions and 15 deletions

View File

@ -23,14 +23,14 @@ describe('#team.users', async () => {
expect(body).toMatchSnapshot();
});
it('should require admin', async () => {
it('should require admin for detailed info', async () => {
const { user } = await seed();
const res = await server.post('/api/team.users', {
body: { token: user.getJwtToken() },
});
const body = await res.json();
expect(res.status).toEqual(403);
expect(res.status).toEqual(200);
expect(body).toMatchSnapshot();
});
});