From 7f5b30aa87f9d96c1b270e2357350dabb83c84d9 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 10 Mar 2022 10:40:52 +0100 Subject: [PATCH] delete frontTest --- .../supplier/front/agency-term/index.spec.js | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 modules/supplier/front/agency-term/index.spec.js diff --git a/modules/supplier/front/agency-term/index.spec.js b/modules/supplier/front/agency-term/index.spec.js deleted file mode 100644 index 8b4b8596b..000000000 --- a/modules/supplier/front/agency-term/index.spec.js +++ /dev/null @@ -1,34 +0,0 @@ -import './index.js'; -import crudModel from 'core/mocks/crud-model'; - -describe('Item', () => { - describe('Component vnItemTags', () => { - let $scope; - let controller; - - beforeEach(ngModule('item')); - - beforeEach(inject(($componentController, $rootScope) => { - $scope = $rootScope.$new(); - $scope.model = crudModel; - 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); - }); - - it('should return 1 when there is no priority defined', () => { - $scope.model.data = []; - let result = controller.getHighestPriority(); - - expect(result).toEqual(1); - }); - }); - }); -});