Skip to content

Commit

Permalink
Use an unsupported analog input sensor type too in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Aug 16, 2024
1 parent 7515c44 commit 577db97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/enervent.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,13 @@ test('parseAnalogSensors', () => {
'analogInputCo21': 450,
})

// Multitude of sensors
typesResult = { data: [1, 2, 4, 5, 8, 9] }
valuesResult = { data: [450, 481, 45, 46, 192, 201] }
// Multitude of sensors, including ones we don't support
typesResult = { data: [1, 2, 4, 7, 8, 9] }
valuesResult = { data: [450, 481, 45, 210, 192, 201] }
expect(parseAnalogSensors(typesResult, valuesResult)).toEqual({
'analogInputCo21': 450,
'analogInputCo22': 481,
'analogInputHumidity1': 45,
'analogInputHumidity2': 46,
'analogInputRoomTemperature1': 19.2,
'analogInputRoomTemperature2': 20.1,
})
Expand Down

0 comments on commit 577db97

Please sign in to comment.