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);