Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. StudentController.register(newUser).then(function(data){
  2. assert.equal(data.name, newUser.name) assert.equal(data.tenant,
  3.  
  4. done(); }).catch(done) });
  5.  
  6. var userInfo = { appId:"abc", email:newUser.email,
  7. password:newUser.password }
  8.  
  9. security.userAuthenticate(userInfo).then(function(data){
  10.  
  11. securityToken = data.securityToken; tenantId = data.tenantId;
  12. emailStatus = data.emailStatus; mobileStatus = data.mobileStatus
  13. studentId = data.userId;
  14.  
  15. done(); }).catch(done) });
  16.  
  17. StudentController.getById(studentId).then(function(data){
  18.  
  19. loggedInUser = data; loggedInUser.tenantId = 'abc';
  20. loggedInUser.userId = studentId; loggedInUser.securityToken =
  21.  
  22. done(); }).catch(done) });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement