From 12ceedd80c9b2fb3fce0a617c677ec0ad500213a Mon Sep 17 00:00:00 2001 From: Carlos Jimenez Ruiz Date: Thu, 10 Sep 2020 10:46:56 +0200 Subject: [PATCH] corrected some typos --- modules/ticket/front/component/index.html | 2 +- modules/ticket/front/component/index.spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ticket/front/component/index.html b/modules/ticket/front/component/index.html index 79cc1c7bcc..fb8af32195 100644 --- a/modules/ticket/front/component/index.html +++ b/modules/ticket/front/component/index.html @@ -76,7 +76,7 @@
-
Theorical port
+
Theorical cost
Price {{$ctrl.theoricalCost | currency: 'EUR': 2}}
diff --git a/modules/ticket/front/component/index.spec.js b/modules/ticket/front/component/index.spec.js index 9930ece4c4..053248c2c9 100644 --- a/modules/ticket/front/component/index.spec.js +++ b/modules/ticket/front/component/index.spec.js @@ -107,15 +107,15 @@ describe('ticket', () => { }); describe('getTheoricalCost()', () => { - it('should make a request to get the theorical port of a ticket', () => { + it('should make a request to get the theorical cost of a ticket', () => { controller._ticket = { id: 7 }; - $httpBackend.expect('GET', `Tickets/${controller._ticket.id}/freightCost`).respond('My freight port'); + $httpBackend.expect('GET', `Tickets/${controller._ticket.id}/freightCost`).respond('My freight cost'); controller.getTheoricalCost(); $httpBackend.flush(); - expect(controller.theoricalCost).toBe('My freight port'); + expect(controller.theoricalCost).toBe('My freight cost'); }); });