failing integration test

This commit is contained in:
Matteo Pagliazzi
2016-01-29 12:08:30 +01:00
parent e345fa76f5
commit bcbaa75aad
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ describe('GET /challenges/:challengeId/export/csv', () => {
it('fails if user doesn\'t have access to the challenge', async () => {
await expect(user.get(`/challenges/${challenge._id}/export/csv`)).to.eventually.be.rejected.and.eql({
code: 404,
code: 409,
error: 'NotFound',
message: t('challengeNotFound'),
});

View File

@@ -29,7 +29,7 @@ describe('analytics middleware', () => {
attachAnalytics(req, res, next);
expect(res.analytics).to.not.exist;
expect(res.analytics).to.exist;
});
it('attaches stubbed methods for non-prod environments', () => {