Ivan - STAFF LOGIN - Add staff login fixtures [skip ci]
This commit is contained in:
parent
9fadaa74f0
commit
528814be07
|
@ -0,0 +1,22 @@
|
|||
module.exports = [
|
||||
{
|
||||
path: '/staff/get',
|
||||
time: 100,
|
||||
response: function () {
|
||||
return {
|
||||
status: 'success',
|
||||
data: {
|
||||
name: 'Emilia Clarke',
|
||||
email: 'staff@opensupports.com',
|
||||
profilePic: 'http://i65.tinypic.com/9bep95.jpg',
|
||||
level: 1,
|
||||
departments: [
|
||||
{id: 1, name: 'Sales Support'},
|
||||
{id: 2, name: 'Technical Issues'},
|
||||
{id: 3, name: 'System and Administration'}
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
];
|
|
@ -9,6 +9,7 @@ module.exports = [
|
|||
response = {
|
||||
status: 'success',
|
||||
data: {
|
||||
'staff': data.staff,
|
||||
'userId': 12,
|
||||
'token': 'cc6b4921e6733d6aafe284ec0d7be57e',
|
||||
'rememberToken': (data.remember) ? 'aa41efe0a1b3eeb9bf303e4561ff8392' : null,
|
||||
|
|
|
@ -17,6 +17,7 @@ let fixtures = (function () {
|
|||
|
||||
// FIXTURES
|
||||
fixtures.add(require('data/fixtures/user-fixtures'));
|
||||
fixtures.add(require('data/fixtures/staff-fixtures'));
|
||||
fixtures.add(require('data/fixtures/ticket-fixtures'));
|
||||
fixtures.add(require('data/fixtures/system-fixtures'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue