Skip to content

Commit

Permalink
update canboatjs version (tests for 65379 failing) (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Sep 2, 2024
1 parent 6527e64 commit 78f7fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/SignalK/n2k-signalk",
"dependencies": {
"@canboat/canboatjs": "^2.1.0",
"@canboat/canboatjs": "^2.8.0",
"camelcase": "^6.2.0",
"debug": "^4.0.0",
"int64-buffer": "^0.99.1007",
Expand Down
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 78f7fed

Please sign in to comment.