From beb173f6ce44fa06243cce24a3761e2188951977 Mon Sep 17 00:00:00 2001 From: carlossa Date: Thu, 22 Jun 2023 15:20:28 +0200 Subject: [PATCH] refs #5334 quit e2e no necesario --- modules/worker/front/department/card/index.js | 1 + .../front/department/descriptor/index.spec.js | 26 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 modules/worker/front/department/descriptor/index.spec.js diff --git a/modules/worker/front/department/card/index.js b/modules/worker/front/department/card/index.js index cf0f3922d..62ecf998b 100644 --- a/modules/worker/front/department/card/index.js +++ b/modules/worker/front/department/card/index.js @@ -19,6 +19,7 @@ class Controller extends ModuleCard { } } ] + }; this.$http.get(`Departments/${this.$params.id}`, {filter}) diff --git a/modules/worker/front/department/descriptor/index.spec.js b/modules/worker/front/department/descriptor/index.spec.js deleted file mode 100644 index 305ebcc18..000000000 --- a/modules/worker/front/department/descriptor/index.spec.js +++ /dev/null @@ -1,26 +0,0 @@ -import './index.js'; - -describe('vnWorkerDepartmentDescriptor', () => { - let controller; - let $httpBackend; - - beforeEach(ngModule('worker')); - - beforeEach(inject(($componentController, _$httpBackend_) => { - $httpBackend = _$httpBackend_; - controller = $componentController('vnWorkerDepartmentDescriptor', {$element: null}); - })); - - describe('loadData()', () => { - it(`should perform a get query to store the department data into the controller`, () => { - const id = '31'; - const response = 'foo'; - - $httpBackend.expectRoute('GET', `Departments/${id}`).respond(response); - controller.id = id; - $httpBackend.flush(); - - expect(controller.department).toEqual(response); - }); - }); -});