From d39ef8827fed51a4586e65466b5fc6e406d2fad8 Mon Sep 17 00:00:00 2001 From: Joan Date: Thu, 23 Aug 2018 10:48:44 +0200 Subject: [PATCH] fixed ticket filter back-end test --- services/loopback/common/methods/ticket/specs/filter.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/loopback/common/methods/ticket/specs/filter.spec.js b/services/loopback/common/methods/ticket/specs/filter.spec.js index 38de4fabe..e4806a00d 100644 --- a/services/loopback/common/methods/ticket/specs/filter.spec.js +++ b/services/loopback/common/methods/ticket/specs/filter.spec.js @@ -4,7 +4,7 @@ describe('ticket filter()', () => { it('should call the filter method', async() => { let filter = {order: 'shipped DESC'}; let result = await app.models.Ticket.filter(filter); - let ticketId = result[0].id; + let ticketId = result[0].ticketFk; expect(ticketId).toEqual(15); });