Skip to content

Commit

Permalink
test: tests for 65379 failing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Sep 2, 2024
1 parent 6527e64 commit f318c8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/65379_seatalk_pilot_mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand All @@ -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')
Expand All @@ -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(
Expand Down

0 comments on commit f318c8a

Please sign in to comment.