-
Notifications
You must be signed in to change notification settings - Fork 2k
Tests - Adding route tests for user/admin CRUD operations #928
Tests - Adding route tests for user/admin CRUD operations #928
Conversation
}); | ||
}; | ||
|
||
user = new User(_user); | ||
|
||
// Save a user to the test db and create new article | ||
user.save(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we check that the user was saved and an error wasn't thrown?
@ilanbiala thanks, great feedback! |
@ilanbiala any ideas why I don't see the coverage status here? did something break there? |
@lirantal I noticed that, I'm not sure exactly why but Coveralls had the last build as 1352. I just restarted the build so hopefully Coveralls will get that one. |
Yep, now it's there, thanks. |
79715d2
to
6d9f01e
Compare
@ilanbiala updated and addressed all your comments. |
@lirantal one more return missed that I didn't see before. https://github.com/meanjs/mean/pull/928/files#diff-f2da820fbb902b375a9e67035ac86c1bR152 Other than that, LGTM. |
missed it, thanks! |
6d9f01e
to
de354ee
Compare
LGTM. |
LGTM |
Tests - Adding route tests for user/admin CRUD operations
No description provided.