UNPKG

@jbroll/nmea-simple

Version:

NMEA 0183 sentence parser and encoder

15 lines (14 loc) 655 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("should"); var index_1 = require("../index"); describe("ZDA", function () { it("parser", function () { var packet = index_1.parseNmeaSentence("$GPZDA,160012.71,11,03,2004,-1,00*7D"); packet.should.have.property("sentenceId", "ZDA"); packet.should.have.property("sentenceName", "UTC, day, month, year, and local time zone"); packet.should.have.property("datetime", new Date("2004-03-11T16:00:12.710Z")); packet.should.have.property("localZoneHours", -1); packet.should.have.property("localZoneMinutes", 0); }); });