diff --git a/client/app/app.scss b/client/app/app.scss index e06e40c66cef45f807f4566149077330e095a4aa..db3d7bbcbc98502bf55f979ed4271a775954f8cb 100644 --- a/client/app/app.scss +++ b/client/app/app.scss @@ -196,7 +196,6 @@ input[type=checkbox].with-font:checked ~ label:before { @import 'etapas/etapas.scss'; @import 'evaluaciones/evaluaciones.scss'; @import 'evaluacionesCargosEtapas/evaluacionesCargosEtapas.scss'; -@import 'gruposConvocatoria/gruposConvocatoria.scss'; @import 'main/main.scss'; @import 'personas/personas.scss'; @import 'postulaciones/postulaciones.scss'; diff --git a/client/app/cargos/cargos.controller.spec.js b/client/app/cargos/cargos.controller.spec.js index 00e5633265fe795437fd6e480f20df8683c5f5ca..420ad0f673e06e85693a5f56369677a1bc358507 100644 --- a/client/app/cargos/cargos.controller.spec.js +++ b/client/app/cargos/cargos.controller.spec.js @@ -1,11 +1,11 @@ 'use strict'; -describe('Controller: CargosCtrl', function () { +describe('Controller: CargoCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var CargosCtrl, scope, cargoService, postulacionService, personaService; + var CargoCtrl, scope, cargoService, postulacionService, personaService; var cargos = { "count": 2, "rows": [ @@ -38,7 +38,7 @@ describe('Controller: CargosCtrl', function () { let lstStub = sinon.stub(cargoService, 'getCargos'); lstStub.returns($q.when(cargos)); - CargosCtrl = $controller('CargosCtrl', { + CargoCtrl = $controller('CargoCtrl', { $scope: scope, cargoService }); @@ -46,7 +46,7 @@ describe('Controller: CargosCtrl', function () { it('Debe obtener cargos paginados', function () { scope.$digest(); - expect(CargosCtrl.totalElementos).to.be.equal(2); - expect(CargosCtrl.cargosLibres.length).to.be.equal(2); + expect(CargoCtrl.totalElementos).to.be.equal(2); + expect(CargoCtrl.cargos.length).to.be.equal(2); }); }); diff --git a/client/app/cargosConvocatorias/cargosConvocatorias.controller.spec.js b/client/app/cargosConvocatorias/cargosConvocatorias.controller.spec.js index a90f55834f38aee5ad7d9366f91ab93bac434285..ba70e9ef19f26d8ea8692bd4d8c5c5f6f64d5670 100644 --- a/client/app/cargosConvocatorias/cargosConvocatorias.controller.spec.js +++ b/client/app/cargosConvocatorias/cargosConvocatorias.controller.spec.js @@ -1,21 +1,44 @@ 'use strict'; -describe('Controller: CargosConvocatoriasCtrl', function () { +describe('Controller: CargoConvocatoriaCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var CargosConvocatoriasCtrl, scope; + var CargosConvocatoriasCtrl, scope, cargoConvocatoriaService, convocatoriaService; + var cargosConvocatorias = { + 'count': 2, + 'rows': [ + { + "_id": 1, + "fk_cargo": 1, + "fk_convocatoria": 2 + }, + { + "_id": 2, + "fk_cargo": 1, + "fk_convocatoria": 2 + } + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, _CargoConvocatoriaService_, _ConvocatoriaService_, $q) { + cargoConvocatoriaService = _CargoConvocatoriaService_; + convocatoriaService = _ConvocatoriaService_; scope = $rootScope.$new(); - CargosConvocatoriasCtrl = $controller('CargosConvocatoriasCtrl', { - $scope: scope + + let lstStub = sinon.stub(convocatoriaService, 'cargosConvocatoria'); + lstStub.returns($q.when(cargosConvocatorias)); + CargosConvocatoriasCtrl = $controller('CargoConvocatoriaCtrl', { + $scope: scope, + convocatoriaService }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('Debe obtener cargos asociados a una convocatoria', function () { + scope.$digest(); + expect(CargosConvocatoriasCtrl.cargosConvocatoria.count).to.be.equal(2); + expect(CargosConvocatoriasCtrl.cargosConvocatoria.rows.length).to.be.equal(2); }); }); diff --git a/client/app/cargosGrupos/cargosGrupos.service.js b/client/app/cargosGrupos/cargosGrupos.service.js deleted file mode 100644 index 0231f0fd26f4ff1d1c17b590c07070a974898e5e..0000000000000000000000000000000000000000 --- a/client/app/cargosGrupos/cargosGrupos.service.js +++ /dev/null @@ -1,25 +0,0 @@ -(()=> { - 'use strict'; - class CargoGrupoService { - constructor($resource, appConfig) { - this.resource = $resource(appConfig.serverAddress + '/api/cargosGrupos/:id', {id: '@_id'}, { - update: {method: 'PUT'}, - query: {isArray: false}, - save: { - method: 'POST', - isArray: true - } - }) - } - - guardar(cargoGrupo) { - return this.resource.save(cargoGrupo).$promise; - } - } - - angular.module('moduloPersonalApp') - .service('CargoGrupoService', CargoGrupoService); -})(); - - - diff --git a/client/app/contrataciones/contrataciones.controller.js b/client/app/contrataciones/contrataciones.controller.js index b484461d924e34e52a04c2242eeb41469209f702..c389d8243cdc2df7ce03a6b15a903ce9e76bd973 100644 --- a/client/app/contrataciones/contrataciones.controller.js +++ b/client/app/contrataciones/contrataciones.controller.js @@ -25,8 +25,7 @@ let parametros = { pagina: this.paginaActual, elementos: 10, ordenarPor: 'nombre', incluye: [{entidad: 'Persona'}] }; - if (this.cargoId - ) { + if (this.cargoId) { this.cargoService.relacionesLaborales(this.cargoId, parametros) .then(relacionesLaborales=> { this.relacionesLaborales = relacionesLaborales; @@ -34,56 +33,10 @@ } } - // crear() { - // this.modal.open({ - // templateUrl: 'app/convocatorias/modals/convocatorias.modal.html', - // controller: 'ConvocatoriaCrearModalCtrl', - // controllerAs: 'vm', - // resolve: {parametro: {entidadId: this.entidadId}} - // }).result.then(convocatoria=> { - // this.alertas.push({ - // tipo: 'success', - // mensaje: 'Se creo correctamente la convocatoria ' + convocatoria.descripcion - // }); - // this.convocatorias.rows.push(convocatoria); - // this.convocatorias.count += 1; - // }) - // } - // - // editar(convocatoria) { - // this.modal.open({ - // templateUrl: 'app/convocatorias/modals/convocatorias.modal.html', - // controller: 'ConvocatoriaEditarModalCtrl', - // controllerAs: 'vm', - // resolve: {parametro: {entidadId: this.entidadId, convocatoria: convocatoria}} - // }).result.then(convocatoria=> { - // this.alertas.push({ - // tipo: 'success', - // mensaje: 'Se edito correctamente la convocatoria ' + convocatoria.descripcion - // }); - // }) - // } - // - // eliminar(convocatoria) { - // this.Modal.confirm.eliminar(convocatoria=> { - // this.service.eliminar(convocatoria._id).then(()=> { - // this.convocatorias.rows.splice(this.convocatorias.rows.indexOf(convocatoria), 1); - // this.alertas.push({tipo: 'danger', mensaje: 'La convocatoria se elimino correctamente'}); - // }); - // })(convocatoria.descripcion, convocatoria); - // } } - angular - .module( - 'moduloPersonalApp' - ) - .controller( - 'RelacionLaboralCtrl' - , - RelacionLaboralController - ) - ; + angular.module('moduloPersonalApp') + .controller('RelacionLaboralCtrl', RelacionLaboralController); })(); diff --git a/client/app/contrataciones/contrataciones.controller.spec.js b/client/app/contrataciones/contrataciones.controller.spec.js index 578a6181f93725fc00075312a8c8c00cbda83778..545655c8315fe20e215d4466fa42ade8506c0c60 100644 --- a/client/app/contrataciones/contrataciones.controller.spec.js +++ b/client/app/contrataciones/contrataciones.controller.spec.js @@ -5,17 +5,43 @@ describe('Controller: ContratacionesCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var ContratacionesCtrl, scope; + var ContratacionesCtrl, scope, cargoService; + var relacionesLaborales = { + 'count': 3, + 'rows': [ + { + fk_persona: 1, + fk_cargo: 1 + }, + { + fk_persona: 2, + fk_cargo: 2 + }, + { + fk_persona: 3, + fk_cargo: 4 + } + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, $q, _cargoService_, $stateParams) { + cargoService = _cargoService_; + scope = $rootScope.$new(); - ContratacionesCtrl = $controller('ContratacionesCtrl', { - $scope: scope + $stateParams.cargoId = 10; + let lstStub = sinon.stub(cargoService, 'relacionesLaborales'); + lstStub.returns($q.when(relacionesLaborales)); + ContratacionesCtrl = $controller('RelacionLaboralCtrl', { + $scope: scope, + cargoService, + $stateParams }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('Debe retornar las relaciones laborales paginadas', function () { + scope.$digest(); + expect(ContratacionesCtrl.relacionesLaborales.count).to.be.equal(3); + expect(ContratacionesCtrl.relacionesLaborales.rows.length).to.be.equal(3); }); }); diff --git a/client/app/convocatorias/convocatorias.controller.spec.js b/client/app/convocatorias/convocatorias.controller.spec.js index 04a315ce0f7f83151a77f44e31567c106ec93024..538b576de5867a00d2c2a83c30b81b5270a9c7e5 100644 --- a/client/app/convocatorias/convocatorias.controller.spec.js +++ b/client/app/convocatorias/convocatorias.controller.spec.js @@ -5,17 +5,38 @@ describe('Controller: ConvocatoriasCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var ConvocatoriasCtrl, scope; + var ConvocatoriasCtrl, scope, cargoService; + + var convocatorias = { + 'count': 2, + 'rows': [ + { + _id: 2, + nombre: 'Convocatoria 1' + }, { + _id: 3, + nombre: 'Convocatoria 2' + } + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, $q, _cargoService_, $stateParams) { + cargoService = _cargoService_; scope = $rootScope.$new(); - ConvocatoriasCtrl = $controller('ConvocatoriasCtrl', { - $scope: scope + $stateParams.cargoId = 2; + let lstStub = sinon.stub(cargoService, 'convocatorias'); + lstStub.returns($q.when(convocatorias)); + ConvocatoriasCtrl = $controller('ConvocatoriaCtrl', { + $scope: scope, + cargoService, + $stateParams }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('Debe retornar convocatorias paginadas', function () { + scope.$digest(); + expect(ConvocatoriasCtrl.convocatorias.count).to.be.equal(2); + expect(ConvocatoriasCtrl.convocatorias.rows.length).to.be.equal(2); }); }); diff --git a/client/app/etapas/etapas.controller.spec.js b/client/app/etapas/etapas.controller.spec.js index 50a1976b70524dab7cc9bd88000f0d1d4c004ee7..ecfd274a9f8d5c3c3b0089766cfda07a2040552e 100644 --- a/client/app/etapas/etapas.controller.spec.js +++ b/client/app/etapas/etapas.controller.spec.js @@ -5,17 +5,37 @@ describe('Controller: EtapasCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var EtapasCtrl, scope; + var EtapasCtrl, scope, convocatoriaService; + var etapas = { + 'count': 2, + 'rows': [ + { + _id: 2, + nombre: 'etapa 1' + }, { + _id: 3, + nombre: 'etapa 2' + } + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, $q, _ConvocatoriaService_, $stateParams) { + convocatoriaService = _ConvocatoriaService_; scope = $rootScope.$new(); - EtapasCtrl = $controller('EtapasCtrl', { - $scope: scope + $stateParams.convocatoriaId = 2; + let lstStub = sinon.stub(convocatoriaService, 'etapas'); + lstStub.returns($q.when(etapas)); + EtapasCtrl = $controller('EtapaCtrl', { + $scope: scope, + convocatoriaService, + $stateParams }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('Debe retornar etapas paginadas', function () { + scope.$digest(); + expect(EtapasCtrl.etapas.count).to.be.equal(2); + expect(EtapasCtrl.etapas.rows.length).to.be.equal(2); }); }); diff --git a/client/app/evaluaciones/evaluaciones.controller.spec.js b/client/app/evaluaciones/evaluaciones.controller.spec.js index fc340da9bcb5ced374a8cadf980f6a4f46642787..c7668a924b991bddb561887610137006367ffc3b 100644 --- a/client/app/evaluaciones/evaluaciones.controller.spec.js +++ b/client/app/evaluaciones/evaluaciones.controller.spec.js @@ -5,17 +5,38 @@ describe('Controller: EvaluacionesCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var EvaluacionesCtrl, scope; + var EvaluacionesCtrl, scope, convocatoriaService; + var evaluaciones = { + 'count': 2, + 'rows': [ + { + _id: 1, + nombre: 'Evaluacion 1' + }, { + _id: 2, + nombre: 'Evaluacion 3' + } + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, $q, _ConvocatoriaService_, $stateParams) { + convocatoriaService = _ConvocatoriaService_; + $stateParams.convocatoriaId = 2; scope = $rootScope.$new(); - EvaluacionesCtrl = $controller('EvaluacionesCtrl', { - $scope: scope + + let lstStub = sinon.stub(convocatoriaService, 'evaluaciones'); + lstStub.returns($q.when(evaluaciones)); + EvaluacionesCtrl = $controller('EvaluacionCtrl', { + $scope: scope, + convocatoriaService, + $stateParams }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('Debe retornar evaluaciones paginadas', function () { + scope.$digest(); + expect(EvaluacionesCtrl.evaluaciones.count).to.be.equal(2); + expect(EvaluacionesCtrl.evaluaciones.rows.length).to.be.equal(2); }); }); diff --git a/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.js b/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.js index 935d3fff5f5eab93e3684ede1f8aae9a03d44559..f1c9b58e862425b2b0bf1c0dccd4fd77e1deea33 100644 --- a/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.js +++ b/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.js @@ -14,12 +14,10 @@ this.service = EvaluacionCargoEtapaService; this.convocatoriaService = ConvocatoriaService; this.cargoConvocatoriaService = CargoConvocatoriaService; - - + this.cargoConvocatoriaService.evaluacionesCargosEtapas(this.cargoConvocatoriaId) - .then(evaluacionCargoEtapa=> { - console.log(evaluacionCargoEtapa); - this.evaluacionesCargosEtapas = evaluacionCargoEtapa; + .then(evaluacionesCargosEtapas=> { + this.evaluacionesCargosEtapas = evaluacionesCargosEtapas; return this.convocatoriaService.evaluaciones(this.convocatoriaId); }) .then(evaluaciones=> { @@ -28,7 +26,7 @@ }) .then(etapas=> { this.etapas = etapas; - this.etapas.rows.sort((a, b)=>a.orden - b.orden) + this.etapas.rows.sort((a, b)=>a.orden - b.orden); this.etapas.rows.forEach(etapa=> { etapa.evaluaciones = this.evaluaciones.rows.filter( x=> this.evaluacionesCargosEtapas.rows.filter( @@ -38,8 +36,6 @@ }) } - - guardar() { var evaluacionesCargosEtapas = []; this.etapas.rows.forEach(etapa=> { diff --git a/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.spec.js b/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.spec.js index d22185e694ca04057c2a4842f29f7ef0d01e02bc..f8031f51a6802c84c2d0a252703a8fc7b722420a 100644 --- a/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.spec.js +++ b/client/app/evaluacionesCargosEtapas/evaluacionesCargosEtapas.controller.spec.js @@ -5,17 +5,69 @@ describe('Controller: EvaluacionesCargosEtapasCtrl', function () { // load the controller's module beforeEach(module('moduloPersonalApp')); - var EvaluacionesCargosEtapasCtrl, scope; + var EvaluacionesCargosEtapasCtrl, scope, cargoConvocatoriaService, convocatoriaService; + var evaluacionesCargosEtapas = { + 'count': 2, + 'rows': [ + { + _id: 1, + fk_evaluacion: 1, + fk_cargo_convocatoria: 1, + fk_etapa: 1 + }, { + _id: 2, + fk_evaluacion: 2, + fk_cargo_convocatoria: 1, + fk_etapa: 1 + }, + { + _id: 3, + fk_evaluacion: 3, + fk_cargo_convocatoria: 1, + fk_etapa: 2 + } + ] + }; + var etapas = { + 'count': 2, + 'rows': [ + {_id: 1, nombre: 'Etapa 1', orden: 1}, {_id: 2, nombre: 'Etapa 2', orden: 0} + ] + }; + var evaluaciones = { + 'count': 3, + 'rows': [ + {_id: 1, nombre: 'Evaluacion 1'}, {_id: 2, nombre: 'Evaluacion 2'}, {_id: 3, nombre: 'Evaluacion 3'} + ] + }; // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { + beforeEach(inject(function ($controller, $rootScope, $q, _CargoConvocatoriaService_, _ConvocatoriaService_, $stateParams) { + cargoConvocatoriaService = _CargoConvocatoriaService_; + convocatoriaService = _ConvocatoriaService_; + $stateParams.convocatoriaId = 1; + $stateParams.cargoConvocatoriaId = 1; scope = $rootScope.$new(); - EvaluacionesCargosEtapasCtrl = $controller('EvaluacionesCargosEtapasCtrl', { - $scope: scope + + let evaluacionesStub = sinon.stub(convocatoriaService, 'evaluaciones'); + evaluacionesStub.returns($q.when(evaluaciones)); + let etapasStub = sinon.stub(convocatoriaService, 'etapas'); + etapasStub.returns($q.when(etapas)); + let evaluacionesCargosEtapasStub = sinon.stub(cargoConvocatoriaService, 'evaluacionesCargosEtapas'); + evaluacionesCargosEtapasStub.returns($q.when(evaluacionesCargosEtapas)); + EvaluacionesCargosEtapasCtrl = $controller('EvaluacionCargoEtapaCtrl', { + $scope: scope, + $stateParams, + cargoConvocatoriaService, + convocatoriaService }); })); - it('should ...', function () { - expect(1).to.equal(1); + it('debe retornar evaluacionesCargosEtapas, etapas y evaluaciones', function () { + scope.$digest(); + expect(EvaluacionesCargosEtapasCtrl.etapas.count).to.be.equal(2); + expect(EvaluacionesCargosEtapasCtrl.etapas.rows[0].orden).to.be.equal(0); + expect(EvaluacionesCargosEtapasCtrl.evaluaciones.rows.length).to.be.equal(0); + expect(EvaluacionesCargosEtapasCtrl.etapas.rows[1].evaluaciones.length).to.be.equal(2); }); }); diff --git a/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.controller.js b/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.controller.js deleted file mode 100644 index 97f292341364018a0d050cc3be60192ec03ff2c9..0000000000000000000000000000000000000000 --- a/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.controller.js +++ /dev/null @@ -1,41 +0,0 @@ -(()=> { - 'use strict'; - - class GrupoConvocatoriaEditarController { - constructor($stateParams, $previousState, $uibModal, Modal, GrupoConvocatoriaService) { - this.errores = {}; // lista de errores - this.modal = $uibModal; - this.Modal = Modal; - this.alertas = []; - this.estadoAnterior = $previousState; - - this.entidadId = $stateParams.entidadId; - this.convocatoriaId = $stateParams.convocatoriaId; - this.id = $stateParams.grupoId; - - this.service = GrupoConvocatoriaService; - - this.service.grupoConvocatoria(this.id) - .then(grupoConvocatoria=> { - this.grupoConvocatoria = grupoConvocatoria; - }) - } - - guardar(form, campo) { - if (form.$valid) { - this.service.editar(this.id, {[campo]: form[campo].$modelValue}) - .then(entidad=> { - form[campo].$dirty = false; - this.enviado = false; - this.grupoConvocatoria[campo] = entidad[campo]; - }) - .catch(err => { - this.errores.other = err.message; - }); - } - } - } - - angular.module('moduloPersonalApp') - .controller('GrupoConvocatoriaEditarCtrl', GrupoConvocatoriaEditarController); -})(); diff --git a/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.html b/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.html deleted file mode 100644 index 361789dc3586e4924b9918764a57e7d705a684d8..0000000000000000000000000000000000000000 --- a/client/app/gruposConvocatoria/editar/gruposConvocatoria.editar.html +++ /dev/null @@ -1,50 +0,0 @@ -
- diff --git a/client/app/gruposConvocatoria/gruposConvocatoria.controller.js b/client/app/gruposConvocatoria/gruposConvocatoria.controller.js deleted file mode 100644 index 4ee9924d6c31f7925a233846cc38c65d72cdcf46..0000000000000000000000000000000000000000 --- a/client/app/gruposConvocatoria/gruposConvocatoria.controller.js +++ /dev/null @@ -1,62 +0,0 @@ -(()=> { - 'use strict'; - - class GrupoConvocatoriaController { - constructor($stateParams, $uibModal, Modal, GrupoConvocatoriaService, ConvocatoriaService) { - this.errores = {}; // lista de errores - this.modal = $uibModal; - this.Modal = Modal; - this.alertas = []; - - this.entidadId = $stateParams.entidadId; - this.convocatoriaId = $stateParams.convocatoriaId; - - this.grupoConvocatoriaService = GrupoConvocatoriaService; - this.convocatoriaService = ConvocatoriaService; - - this.convocatoriaService.grupos(this.convocatoriaId) - .then(grupos=> { - this.grupos = grupos; - }) - } - - crear() { - this.modal.open({ - templateUrl: 'app/gruposConvocatoria/modals/gruposConvocatoria.modal.html', - controller: 'GrupoConvocatoriaCrearModalCtrl', - controllerAs: 'vm', - resolve: {parametro: {convocatoriaId: this.convocatoriaId, entidadId: this.entidadId}} - }).result.then(grupo=> { - this.alertas.push({ - tipo: 'success', - mensaje: 'Se creo correctamente el grupo' - }); - this.grupos.rows.push(grupo); - this.grupos.count += 1; - }) - } - - editar(grupo) { - this.modal.open({ - templateUrl: 'app/gruposConvocatoria/modals/gruposConvocatoria.modal.html', - controller: 'GrupoConvocatoriaEditarModalCtrl', - controllerAs: 'vm', - resolve: { - parametro: {grupo: grupo, entidadId: this.entidadId} - } - }).result.then(grupoEditado=> { - this.alertas.push({ - tipo: 'success', - mensaje: 'Se edito correctamente el grupo' - }); - grupo = Object.assign(grupo, grupoEditado); - }) - } - } - - angular.module('moduloPersonalApp') - .controller('GrupoConvocatoriaCtrl', GrupoConvocatoriaController); -})(); - - - diff --git a/client/app/gruposConvocatoria/gruposConvocatoria.controller.spec.js b/client/app/gruposConvocatoria/gruposConvocatoria.controller.spec.js deleted file mode 100644 index 8d1b757a33c60fbd658826c6f54da3446708a1cf..0000000000000000000000000000000000000000 --- a/client/app/gruposConvocatoria/gruposConvocatoria.controller.spec.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -describe('Controller: GruposConvocatoriaCtrl', function () { - - // load the controller's module - beforeEach(module('moduloPersonalApp')); - - var GruposConvocatoriaCtrl, scope; - - // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { - scope = $rootScope.$new(); - GruposConvocatoriaCtrl = $controller('GruposConvocatoriaCtrl', { - $scope: scope - }); - })); - - it('should ...', function () { - expect(1).to.equal(1); - }); -}); diff --git a/client/app/gruposConvocatoria/gruposConvocatoria.html b/client/app/gruposConvocatoria/gruposConvocatoria.html deleted file mode 100644 index 61dd3479b477b674e3a9bed9b3957a1ae4bf3540..0000000000000000000000000000000000000000 --- a/client/app/gruposConvocatoria/gruposConvocatoria.html +++ /dev/null @@ -1,7 +0,0 @@ -------- -
-- - - -Descripción -Opciones -- - -{{grupo.descripcion}} -- - -