corrected some typos
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1985a37666
commit
12ceedd80c
|
@ -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>
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue