fix ticket-volume
This commit is contained in:
parent
8b03ba420f
commit
f4423e3fb5
|
@ -28,7 +28,7 @@ describe('ticket', () => {
|
|||
|
||||
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}]]};
|
||||
let response = {volumes: [{saleFk: 1, m3: 0.008}, {saleFk: 2, m3: 0.003}]};
|
||||
$httpBackend.whenGET(`/api/tickets/1/getVolume`).respond(response);
|
||||
$httpBackend.expectGET(`/api/tickets/1/getVolume`);
|
||||
controller.setVolumes();
|
||||
|
|
Loading…
Reference in New Issue