corrected some typos
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-09-10 10:46:56 +02:00
parent 1985a37666
commit 12ceedd80c
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@
</section>
</div>
<div class="totalBox align-left">
<h6 class="align-center" translate>Theorical port</h6>
<h6 class="align-center" translate>Theorical cost</h6>
<div> <vn-label translate>Price</vn-label> {{$ctrl.theoricalCost | currency: 'EUR': 2}} </div>
</div>
</vn-side-menu>

View File

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