test fixed
This commit is contained in:
parent
8bd91f3039
commit
575ea7fdea
|
@ -22,33 +22,7 @@ describe('Ticket', () => {
|
|||
|
||||
describe('getCard()', () => {
|
||||
it('should perform a GET query and define the ticket property on controller', () => {
|
||||
let filter = {
|
||||
include: [
|
||||
{relation: 'warehouse', scope: {fields: ['name']}},
|
||||
{relation: 'agencyMode', scope: {fields: ['name']}},
|
||||
{
|
||||
relation: 'client',
|
||||
scope: {
|
||||
fields: ['salesPersonFk', 'name', 'isActive', 'isFreezed', 'isTaxDataChecked'],
|
||||
include: {
|
||||
relation: 'salesPerson',
|
||||
fields: ['firstName', 'name']
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
relation: 'tracking',
|
||||
scope: {
|
||||
fields: ['stateFk'],
|
||||
include: {
|
||||
relation: 'state',
|
||||
fields: ['name']
|
||||
},
|
||||
order: 'created DESC'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
let filter = controller.filter;
|
||||
|
||||
filter = encodeURIComponent(JSON.stringify(filter));
|
||||
|
||||
|
|
Loading…
Reference in New Issue