test fixed
This commit is contained in:
parent
8bd91f3039
commit
575ea7fdea
|
@ -22,33 +22,7 @@ describe('Ticket', () => {
|
||||||
|
|
||||||
describe('getCard()', () => {
|
describe('getCard()', () => {
|
||||||
it('should perform a GET query and define the ticket property on controller', () => {
|
it('should perform a GET query and define the ticket property on controller', () => {
|
||||||
let filter = {
|
let filter = controller.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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|
||||||
filter = encodeURIComponent(JSON.stringify(filter));
|
filter = encodeURIComponent(JSON.stringify(filter));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue