From 9363726d67447b12cc1a31a2ba7975d455bcdbb9 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 12 May 2021 13:37:01 +0200 Subject: [PATCH] Updated unit test --- modules/entry/front/latest-buys/index.spec.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/entry/front/latest-buys/index.spec.js b/modules/entry/front/latest-buys/index.spec.js index 658a2dc86..6f86650c9 100644 --- a/modules/entry/front/latest-buys/index.spec.js +++ b/modules/entry/front/latest-buys/index.spec.js @@ -66,6 +66,13 @@ describe('Entry', () => { describe('onEditAccept()', () => { it(`should perform a query to update columns`, () => { + $httpBackend.whenGET('UserConfigViews/getConfig?tableCode=latestBuys').respond([]); + $httpBackend.whenGET('Buys/latestBuysFilter?filter=%7B%22limit%22:20%7D').respond([ + {entryFk: 1}, + {entryFk: 2}, + {entryFk: 3}, + {entryFk: 4} + ]); controller.editedColumn = {field: 'my field', newValue: 'the new value'}; let query = 'Buys/editLatestBuys';