var chai = require("chai");
chai.Should();
chai.use(require('chai-things'));


describe('129026 COG & SOG, Rapid Update', function () {
  it('complete sentence converts', function () {
    var tree = require("../n2kMapper.js").toNested(
      JSON.parse('{"timestamp":"2014-08-15-18:00:10.005","prio":"2","src":"160","dst":"255","pgn":"129026","description":"COG & SOG, Rapid Update","fields":{"COG Reference":"True","COG":"206.1","SOG":"3.65"}}'));
    tree.should.have.deep.property('navigation.courseOverGroundTrue');
    tree.should.have.deep.property('navigation.courseOverGroundTrue.value', 206.1);
    tree.should.have.deep.property('navigation.speedOverGround');
    tree.should.have.deep.property('navigation.speedOverGround.value', 3.65);
  });
});




@@ -70,16 +70,65 @@
 ngs'));%0A
+chai.use(require('signalk-schema').chaiModule);%0A%0A
 %0A%0Adescri
@@ -791,16 +791,49 @@
  3.65);%0A
+    tree.should.be.validSignalK;%0A
   %7D);%0A%7D)

Fix 129026 COG & SOG