refs #5334 quit e2e no necesario
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-06-22 15:20:28 +02:00
parent 137e01e60c
commit beb173f6ce
2 changed files with 1 additions and 26 deletions

View File

@ -19,6 +19,7 @@ class Controller extends ModuleCard {
} }
} }
] ]
}; };
this.$http.get(`Departments/${this.$params.id}`, {filter}) this.$http.get(`Departments/${this.$params.id}`, {filter})

View File

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