Merge pull request #6877 from HabitRPG/v3-adapt-shared

Make shared code ready for API v3
This commit is contained in:
Matteo Pagliazzi
2016-03-13 23:13:00 +01:00
31 changed files with 212 additions and 332 deletions
@@ -11,7 +11,6 @@ import { v4 as generateUUID } from 'uuid';
describe('DELETE /challenges/:challengeId', () => {
it('returns error when challengeId is not a valid UUID', async () => {
let user = await generateUser();
await expect(user.del(`/challenges/test`)).to.eventually.be.rejected.and.eql({
code: 400,
error: 'BadRequest',
+1 -1
View File
@@ -1,6 +1,6 @@
// TODO move to shared tests
import { CustomError } from '../../../../../common/script/api-v3/errors';
import {
CustomError,
NotAuthorized,
BadRequest,
InternalServerError,