@@ -10,7 +10,7 @@ describe('127505 fuel', function () {
10
10
'{"timestamp":"2015-01-15-16:15:30.984Z","prio":"6","src":"17","dst":"255","pgn":"127505","description":"Fluid Level","fields":{"Instance":"0","Type":"Fuel","Level":"131.068"}}'
11
11
)
12
12
)
13
- tree . should . have . nested . property ( 'tanks.fuel.0.currentLevel.value' , 131.068 )
13
+ tree . should . have . nested . property ( 'tanks.fuel.0.currentLevel.value' , 1.31068 )
14
14
tree . should . be . validSignalKVesselIgnoringIdentity
15
15
} )
16
16
it ( 'level and capacity' , function ( ) {
@@ -19,7 +19,7 @@ describe('127505 fuel', function () {
19
19
'{"timestamp":"2015-01-15-16:15:33.341Z","prio":"6","src":"112","dst":"255","pgn":"127505","description":"Fluid Level","fields":{"Instance":"1","Type":"Fuel","Level":"64.284","Capacity":"41.6"}}'
20
20
)
21
21
)
22
- tree . should . have . nested . property ( ' tanks.fuel.1 .currentLevel.value' , 64.284 )
22
+ tree . tanks . fuel [ '1' ] . currentLevel . value . should . be . closeTo ( 0.64284 , 0.000005 )
23
23
tree . should . have . nested . property ( 'tanks.fuel.1.capacity.value' , 41.6 )
24
24
tree . should . be . validSignalKVesselIgnoringIdentity
25
25
} )
@@ -32,9 +32,9 @@ describe('127505 water', function () {
32
32
'{"timestamp":"2015-01-15-16:15:33.366Z","prio":"6","src":"114","dst":"255","pgn":"127505","description":"Fluid Level","fields":{"Instance":"0","Type":"Water","Level":"88.596","Capacity":"71.9"}}'
33
33
)
34
34
)
35
- tree . should . have . nested . property (
36
- 'tanks.freshWater.0.currentLevel.value' ,
37
- 88.596
35
+ tree . tanks . freshWater [ '0' ] . currentLevel . value . should . be . closeTo (
36
+ 0.88596 ,
37
+ 0.000005
38
38
)
39
39
tree . should . have . nested . property ( 'tanks.freshWater.0.capacity.value' , 71.9 )
40
40
tree . should . be . validSignalKVesselIgnoringIdentity
@@ -50,7 +50,7 @@ describe('127505 grayWater', function () {
50
50
)
51
51
tree . should . have . nested . property (
52
52
'tanks.wasteWater.0.currentLevel.value' ,
53
- 90.24
53
+ 0.9024
54
54
)
55
55
tree . should . have . nested . property ( 'tanks.wasteWater.0.capacity.value' , 37.9 )
56
56
tree . should . be . validSignalKVesselIgnoringIdentity
0 commit comments