From f74d2cc3023a09a1d3cd7bde0bbf09386add488b Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 22 Sep 2021 15:16:45 +0200 Subject: [PATCH] test(tags): moved code used on a single test to the correct place --- modules/item/front/tags/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/item/front/tags/index.spec.js b/modules/item/front/tags/index.spec.js index 34a9ce143..8b4b8596b 100644 --- a/modules/item/front/tags/index.spec.js +++ b/modules/item/front/tags/index.spec.js @@ -11,13 +11,13 @@ describe('Item', () => { beforeEach(inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $scope.model = crudModel; - $scope.model.data = [{priority: 1}, {priority: 2}, {priority: 1}]; const $element = angular.element(''); controller = $componentController('vnItemTags', {$element, $scope}); })); describe('getHighestPriority', () => { it('should return the highest priority value + 1 from the array', () => { + $scope.model.data = [{priority: 1}, {priority: 2}, {priority: 1}]; let result = controller.getHighestPriority(); expect(result).toEqual(3);