wip(shared): adapt to v3

This commit is contained in:
Matteo Pagliazzi
2016-03-13 22:26:32 +01:00
parent 13a86c3858
commit 8e3284a4e3
34 changed files with 134 additions and 330 deletions
@@ -9,9 +9,8 @@ import {
import { v4 as generateUUID } from 'uuid';
describe('DELETE /challenges/:challengeId', () => {
it('returns error when challengeId is not a valid UUID', async () => {
it.only('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,