Skip to content

Commit

Permalink
fix: fix the test label and add test for msg type A
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Feb 13, 2020
1 parent 2bc62b9 commit 3d6d74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/VDM.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ describe('VDM', function() {
should.equal(delta, null)
})

it('class B position report with nav status motoring converts ok', () => {
it('class A position report with nav status motoring converts ok', () => {
const delta = new Parser().parse('!AIVDM,1,1,,B,13aGra0P00PHid>NK9<2FOvHR624,0*3E\n')
delta.updates[0].values.find(pathValue => pathValue.path === 'navigation.state').value.should.equal('motoring')

delta.updates[0].values.find(pathValue => pathValue.path === 'sensors.ais.class').value.should.equal('A')
})
})

0 comments on commit 3d6d74e

Please sign in to comment.