Advertisement
Guest User

Untitled

a guest
Apr 15th, 2017
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. return [
  2. {
  3. 'model': 'user',
  4. 'keys': ["email"],
  5. 'data': {
  6. email: "kpiGroupControllerTest1@aaaa.pl",
  7. firstName: "x",
  8. lastName: "y",
  9. company: "z",
  10. code: "aaaa",
  11. password: passwords[0],
  12. role: 1,
  13. active: 1,
  14. kpis: [
  15. {name: 'Total FTE'},
  16. {name: 'Average Salary'},
  17. ]
  18. }
  19. },
  20. {
  21. 'model': 'accessToken',
  22. 'data': {
  23. token: 'some-default-kpi-only',
  24. active: true,
  25. user: {
  26. email: "kpiGroupControllerTest1@aaaa.pl"
  27. }
  28. }
  29. }
  30. ];
  31.  
  32. /**
  33. Assuming that `accessToken`.belongsTo(`user`), it will match automatically (i.e. put relevant userId value in accessToken.userId) via `email`
  34. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement