UNPKG

@jbroll/nmea-simple

Version:

NMEA 0183 sentence parser and encoder

19 lines (18 loc) 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("should"); var index_1 = require("../index"); describe("DTM", function () { it("parser", function () { var packet = index_1.parseNmeaSentence("$GNDTM,W84,,0.0,N,0.0,E,0.0,W84*71"); packet.should.have.property("sentenceId", "DTM"); packet.should.have.property("sentenceName", "Datum reference"); packet.should.have.property("talkerId", "GN"); packet.should.have.property("datumCode", "W84"); packet.should.have.property("datumSubcode", undefined); packet.should.have.property("offsetLatitude", 0); packet.should.have.property("offsetLongitude", 0); packet.should.have.property("offsetAltitudeMeters", 0); packet.should.have.property("datumName", "W84"); }); });