test fixed

This commit is contained in:
Gerard 2018-11-15 08:59:22 +01:00
parent 8bd91f3039
commit 575ea7fdea
1 changed files with 1 additions and 27 deletions

View File

@ -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));