mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-05 22:19:26 +01:00
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:
committed by
Michael Leanos
parent
482c38c287
commit
44a569ee1f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user