corrected spec descriptions
This commit is contained in:
parent
8537752d3c
commit
f2f1579fa9
|
@ -22,8 +22,7 @@ describe('ticket', () => {
|
|||
controller = $componentController('vnTicketVolume', {$scope: $scope}, {$httpBackend: $httpBackend}, {$state: $state});
|
||||
}));
|
||||
|
||||
describe('total()', () => {
|
||||
it('should return the sum from all componenets in each sale', () => {
|
||||
it('should join the sale volumes to its respective sale', () => {
|
||||
controller.ticket = {id: 1};
|
||||
let response = {volumes: [[{saleFk: 1, m3: 0.008}, {saleFk: 2, m3: 0.003}]]};
|
||||
$httpBackend.whenGET(`/api/tickets/1/getVolume`).respond(response);
|
||||
|
@ -35,6 +34,5 @@ describe('ticket', () => {
|
|||
expect($scope.index.model.instances[1].volume.m3).toBe(0.003);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue