From e3606c72731875f032d5ae77e3530b966c6ffaa3 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 10 Oct 2022 14:46:06 +0200 Subject: [PATCH] Updated unit test --- modules/item/front/diary/index.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/item/front/diary/index.spec.js b/modules/item/front/diary/index.spec.js index 78dae0883..878ce6624 100644 --- a/modules/item/front/diary/index.spec.js +++ b/modules/item/front/diary/index.spec.js @@ -19,7 +19,8 @@ describe('Item', () => { describe('set item()', () => { it('should set warehouseFk property based on itemType warehouseFk', () => { jest.spyOn(controller.$, '$applyAsync'); - controller.item = {id: 1, itemType: {warehouseFk: 1}}; + controller.item = {id: 1}; + controller.vnConfig = {warehouseFk: 1}; expect(controller.$.$applyAsync).toHaveBeenCalledWith(jasmine.any(Function)); $scope.$apply();