Requested chagnes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-11-11 13:44:42 +01:00
parent d959dbc058
commit 378982389a
2 changed files with 1 additions and 6 deletions

View File

@ -160,5 +160,5 @@
"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",
"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"
}

View File

@ -27,12 +27,8 @@ describe('Ticket Component vnTicketDescriptor', () => {
beforeEach(inject(($componentController, _$httpBackend_, _$state_) => {
$httpBackend = _$httpBackend_;
// $httpBackend.whenGET(`Tickets/${ticket.id}/canHaveStowaway`).respond(true);
// $httpBackend.expect('GET', `Tickets/${ticket.id}/isEditable`).respond(true);
$state = _$state_;
$state.params.id = 1;
// $state.getCurrentPath = () => [null, {state: {name: 'ticket'}}];
const $element = angular.element('<vn-ticket-descriptor></vn-ticket-descriptor>');
controller = $componentController('vnTicketDescriptor', {$element});
@ -41,7 +37,6 @@ describe('Ticket Component vnTicketDescriptor', () => {
describe('loadData()', () => {
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();
controller.loadData();
$httpBackend.flush();