Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unification of error messages for e2e test #87

Closed
wants to merge 6 commits into from
Closed

Unification of error messages for e2e test #87

wants to merge 6 commits into from

Conversation

akoniar
Copy link
Contributor

@akoniar akoniar commented Mar 19, 2018

No description provided.

@ghost ghost added the in progress label Mar 19, 2018
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 96.552% when pulling e069bce on akoniar:unification-error-messages into 2711820 on bucharest-gold:master.

@coveralls
Copy link

coveralls commented Mar 19, 2018

Coverage Status

Coverage decreased (-1.5%) to 95.313% when pulling 855975d on akoniar:unification-error-messages into 2711820 on bucharest-gold:master.

@akoniar
Copy link
Contributor Author

akoniar commented Mar 22, 2018

@lholmquist Please, code review

app.js Outdated
@@ -29,7 +29,7 @@ const db = require('./lib/db');

const fruits = require('./lib/routes/fruits');

app.use(bodyParser.json());
app.use(bodyParser.text({ type: 'application/json' }));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to do this. isn't this just another way of writing bodyParser.json()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I look at on it.

if (result.rowCount === 0) {
response.status(404);
return response.send(`Unknown item ${id}`);
}
return response.sendStatus(204);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think there is any reason to remove that return . it technically doesn't need to be there, but the other methods have it, so we should keep it for consistency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@lholmquist
Copy link
Contributor

@akoniar once those other issues are fixed, i can probably merge this

@lholmquist
Copy link
Contributor

@akoniar looks like travis is broken

@lholmquist
Copy link
Contributor

lholmquist commented Mar 27, 2018

@akoniar still broken. you should probably run npm run test locally before pushing up

@lholmquist
Copy link
Contributor

@akoniar landed as 50a7f72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants