Requested chagnes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
d959dbc058
commit
378982389a
|
@ -160,5 +160,5 @@
|
||||||
"The social name cannot be empty": "La razón social no puede quedar en blanco",
|
"The social name cannot be empty": "La razón social no puede quedar en blanco",
|
||||||
"The nif cannot be empty": "El NIF no puede quedar en blanco",
|
"The nif cannot be empty": "El NIF no puede quedar en blanco",
|
||||||
"You need to fill sage information before you check verified data": "Debes rellenar la información de sage antes de marcar datos comprobados",
|
"You need to fill sage information before you check verified data": "Debes rellenar la información de sage antes de marcar datos comprobados",
|
||||||
"ASSIGN_ZONE_FIRST": "ASSIGN_ZONE_FIRST"
|
"ASSIGN_ZONE_FIRST": "Asigna una zona primero"
|
||||||
}
|
}
|
|
@ -27,12 +27,8 @@ describe('Ticket Component vnTicketDescriptor', () => {
|
||||||
|
|
||||||
beforeEach(inject(($componentController, _$httpBackend_, _$state_) => {
|
beforeEach(inject(($componentController, _$httpBackend_, _$state_) => {
|
||||||
$httpBackend = _$httpBackend_;
|
$httpBackend = _$httpBackend_;
|
||||||
// $httpBackend.whenGET(`Tickets/${ticket.id}/canHaveStowaway`).respond(true);
|
|
||||||
// $httpBackend.expect('GET', `Tickets/${ticket.id}/isEditable`).respond(true);
|
|
||||||
|
|
||||||
$state = _$state_;
|
$state = _$state_;
|
||||||
$state.params.id = 1;
|
$state.params.id = 1;
|
||||||
// $state.getCurrentPath = () => [null, {state: {name: 'ticket'}}];
|
|
||||||
|
|
||||||
const $element = angular.element('<vn-ticket-descriptor></vn-ticket-descriptor>');
|
const $element = angular.element('<vn-ticket-descriptor></vn-ticket-descriptor>');
|
||||||
controller = $componentController('vnTicketDescriptor', {$element});
|
controller = $componentController('vnTicketDescriptor', {$element});
|
||||||
|
@ -41,7 +37,6 @@ describe('Ticket Component vnTicketDescriptor', () => {
|
||||||
|
|
||||||
describe('loadData()', () => {
|
describe('loadData()', () => {
|
||||||
it(`should perform a get query to store the ticket data into the controller`, () => {
|
it(`should perform a get query to store the ticket data into the controller`, () => {
|
||||||
// $httpBackend.when('GET', `Tickets/${ticket.id}/isEditable`).respond();
|
|
||||||
$httpBackend.expect('GET', `Tickets/${ticket.id}`).respond();
|
$httpBackend.expect('GET', `Tickets/${ticket.id}`).respond();
|
||||||
controller.loadData();
|
controller.loadData();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
Loading…
Reference in New Issue