smirea

Untitled

Mar 20th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. beforeEach(function () {
  2.       return Q.all([
  3.         Q.ninvoke(models.User, 'remove', {}),
  4.         Q.ninvoke(models.Media, 'remove', {}),
  5.         Q.ninvoke(models.Tag, 'remove', {}),
  6.       ]).then(function () {
  7.         return protocol.user.add({userHandle:'foo'}).then(function (user) {
  8.           userId = user._id;
  9.         });
  10.       });
  11.     });
Advertisement
Add Comment
Please, Sign In to add comment