feat(articles): Simple test enhancement (#1659)

* feat(articles): Simple test enhancement

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

Further reference here: https://github.com/meanjs/generator-meanjs/pull/257

Fixes #1658

* updated per @simison's request
This commit is contained in:
Justin Rodenbostel
2017-06-13 17:57:02 -05:00
committed by Michael Leanos
parent 482c38c287
commit 44a569ee1f

View File

@@ -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