From 575ea7fdea4fd570b4a39b68bc3fd5b4170b50ae Mon Sep 17 00:00:00 2001 From: Gerard Date: Thu, 15 Nov 2018 08:59:22 +0100 Subject: [PATCH] test fixed --- client/ticket/src/card/index.spec.js | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/client/ticket/src/card/index.spec.js b/client/ticket/src/card/index.spec.js index 4828056eb..799c4c16c 100644 --- a/client/ticket/src/card/index.spec.js +++ b/client/ticket/src/card/index.spec.js @@ -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));