message: add test for closed <g> tags
diff: @@ -37,4 +37,19 @@ describe('Export SVG', function () {
  assert.ok(svg.indexOf('style="style3"') > 0);
  });
  + it('should export with all <g> tags closed', function () {
  + var svg = makerjs.exporter.toSVG(model, { useSvgPathOnly: false });
  + var result, openTags = [], closeTags = [];
  + var regex = /<g/gi;
  + while ( (result = regex.exec(svg)) ) {
  + openTags.push(result.index);
  + }
  + regex = /<\/g/gi;
  + while ( (result = regex.exec(svg)) ) {
  + closeTags.push(result.index);
  + }
  + assert.ok(openTags.length > 0);
  + assert.ok(closeTags.length == openTags.length);
  + });
  +
  });
  