Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
feat(articles): Simple test enhancement (#1659)
Browse files Browse the repository at this point in the history
* feat(articles): Simple test enhancement

Simple test enhancement proposed by @jrodenbostel.  Eases troubleshooting when Article save fails during test execution.

Further reference here: meanjs/generator-meanjs#257

Fixes #1658

* updated per @simison's request
  • Loading branch information
jrodenbostel authored and mleanos committed Jun 13, 2017
1 parent 482c38c commit 44a569e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/articles/tests/server/article.server.routes.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ describe('Article CRUD tests', function () {
var articleObj = new Article(article);

// Save the article
articleObj.save(function () {
articleObj.save(function (err) {
if (err) {
return done(err);
}
request(app).get('/api/articles/' + articleObj._id)
.end(function (req, res) {
// Set assertion
Expand Down

0 comments on commit 44a569e

Please sign in to comment.