diff --git a/test/65379_seatalk_pilot_mode.js b/test/65379_seatalk_pilot_mode.js index 5ab317d..da6c83b 100644 --- a/test/65379_seatalk_pilot_mode.js +++ b/test/65379_seatalk_pilot_mode.js @@ -7,7 +7,7 @@ describe('65379 Seatalk Pilot Mode', function () { it('complet pilot mode sentence converts track', function () { var tree = require('./testMapper').toNested( JSON.parse( - '{"timestamp":"2016-10-18T15:52:49.048Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"129","Sub Mode":"1","Pilot Mode Data":"0"}}' + '{"timestamp":"2016-10-18T15:52:49.048Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"Track Mode","Sub Mode":"0","Pilot Mode Data":"0"}}' ) ) tree.should.have.nested.property('steering.autopilot.state.value', 'route') @@ -17,7 +17,7 @@ describe('65379 Seatalk Pilot Mode', function () { it('complet pilot mode sentence converts auto', function () { var tree = require('./testMapper').toNested( JSON.parse( - '{"timestamp":"2016-09-06T22:56:27.719Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"64","Sub Mode":"0","Pilot Mode Data":"0"}}' + '{"timestamp":"2016-09-06T22:56:27.719Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"Auto, compass commanded","Sub Mode":"0","Pilot Mode Data":"0"}}' ) ) tree.should.have.nested.property('steering.autopilot.state.value', 'auto') @@ -27,7 +27,7 @@ describe('65379 Seatalk Pilot Mode', function () { it('complet pilot mode sentence converts wind', function () { var tree = require('./testMapper').toNested( JSON.parse( - '{"timestamp":"2016-09-06T23:01:38.822Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"0","Sub Mode":"1","Pilot Mode Data":"0"}}' + '{"timestamp":"2016-09-06T23:01:38.822Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"Vane, Wind Mode","Sub Mode":"0","Pilot Mode Data":"0"}}' ) ) tree.should.have.nested.property('steering.autopilot.state.value', 'wind') @@ -37,7 +37,7 @@ describe('65379 Seatalk Pilot Mode', function () { it('complet pilot mode sentence converts standby', function () { var tree = require('./testMapper').toNested( JSON.parse( - '{"timestamp":"2016-10-18T15:52:00.751Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"0","Sub Mode":"0","Pilot Mode Data":"0"}}' + '{"timestamp":"2016-10-18T15:52:00.751Z","prio":7,"src":204,"dst":255,"pgn":65379,"description":"Seatalk: Pilot Mode","fields":{"Manufacturer Code":"Raymarine","Industry Code":"Marine Industry","Pilot Mode":"Standby","Sub Mode":"0","Pilot Mode Data":"0"}}' ) ) tree.should.have.nested.property(