Updated test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3d388ad226
commit
36ec930878
|
@ -59,7 +59,7 @@ describe('ticket', () => {
|
||||||
|
|
||||||
it(`should apply volumes to the sales if sales and volumes properties are defined on controller`, () => {
|
it(`should apply volumes to the sales if sales and volumes properties are defined on controller`, () => {
|
||||||
controller.sales = [{id: 1, name: 'Sale one'}, {id: 2, name: 'Sale two'}];
|
controller.sales = [{id: 1, name: 'Sale one'}, {id: 2, name: 'Sale two'}];
|
||||||
controller.volumes = [{saleFk: 1, m3: 0.012}, {saleFk: 2, m3: 0.015}];
|
controller.volumes = [{saleFk: 1, volume: 0.012}, {saleFk: 2, volume: 0.015}];
|
||||||
|
|
||||||
expect(controller.sales[0].saleVolume.volume).toEqual(0.012);
|
expect(controller.sales[0].saleVolume.volume).toEqual(0.012);
|
||||||
expect(controller.sales[1].saleVolume.volume).toEqual(0.015);
|
expect(controller.sales[1].saleVolume.volume).toEqual(0.015);
|
||||||
|
|
Loading…
Reference in New Issue