From 78f7fedcbce849c9b966546113ad813bebd9c8d4 Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Mon, 2 Sep 2024 15:19:54 -0400 Subject: [PATCH] update canboatjs version (tests for 65379 failing) (#276) --- package.json | 2 +- test/65379_seatalk_pilot_mode.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3b3e168..ad55415 100644 --- a/package.json +++ b/package.json @@ -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", 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(