From b1237f4f31159f28ecc86cf7573066e05a79753e Mon Sep 17 00:00:00 2001 From: panaaj <38519157+panaaj@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:05:02 +0930 Subject: [PATCH] Fix empty sentence test. --- test/RMB.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/RMB.js b/test/RMB.js index c853ca2..1a7241c 100644 --- a/test/RMB.js +++ b/test/RMB.js @@ -75,6 +75,9 @@ describe('RMB', () => { it("Doesn't choke on empty sentences", () => { const delta = new Parser().parse('$ECRMB,,,,,,,,,,,,,*77') - should.equal(delta, null) + delta.updates[0].values.should.contain.an.item.with.property( + 'path', + 'navigation.courseRhumbline.nextPoint.position' + ) }) })