Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return [
- {
- 'model': 'user',
- 'keys': ["email"],
- 'data': {
- email: "kpiGroupControllerTest1@aaaa.pl",
- firstName: "x",
- lastName: "y",
- company: "z",
- code: "aaaa",
- password: passwords[0],
- role: 1,
- active: 1,
- kpis: [
- {name: 'Total FTE'},
- {name: 'Average Salary'},
- ]
- }
- },
- {
- 'model': 'accessToken',
- 'data': {
- token: 'some-default-kpi-only',
- active: true,
- user: {
- email: "kpiGroupControllerTest1@aaaa.pl"
- }
- }
- }
- ];
- /**
- Assuming that `accessToken`.belongsTo(`user`), it will match automatically (i.e. put relevant userId value in accessToken.userId) via `email`
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement