Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- beforeEach(function () {
- return Q.all([
- Q.ninvoke(models.User, 'remove', {}),
- Q.ninvoke(models.Media, 'remove', {}),
- Q.ninvoke(models.Tag, 'remove', {}),
- ]).then(function () {
- return protocol.user.add({userHandle:'foo'}).then(function (user) {
- userId = user._id;
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment