Comparing version 1.2.7 to 1.2.8
{ | ||
"name": "mscgenjs", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Implementation of MscGen in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,7 +22,5 @@ /* | ||
var EOL = "\n"; | ||
var gMinimal = false; | ||
function init(pMinimal) { | ||
if (true === pMinimal) { | ||
gMinimal = true; | ||
INDENT = ""; | ||
@@ -32,3 +30,2 @@ SP = ""; | ||
} else { | ||
gMinimal = false; | ||
INDENT = " "; | ||
@@ -70,3 +67,3 @@ SP = " "; | ||
"opener" : INDENT, | ||
"separator" : "," + EOL, | ||
"separator" : "," + EOL + INDENT, | ||
"closer" : ";" + EOL + EOL | ||
@@ -87,3 +84,3 @@ }, | ||
"opener" : INDENT, | ||
"separator" : "," + EOL, | ||
"separator" : "," + EOL + INDENT, | ||
"closer" : ";" + EOL | ||
@@ -90,0 +87,0 @@ }, |
@@ -40,2 +40,12 @@ var assert = require("assert"); | ||
}); | ||
it("correctly renders multiple options", function() { | ||
var lProgram = renderer.render(fix.astOptionsMscgen); | ||
var lExpectedProgram = 'msc {\n hscale="1.2",\n width="800",\n arcgradient="17",\n wordwraparcs="true";\n\n a;\n\n}'; | ||
assert.equal(lProgram, lExpectedProgram); | ||
}); | ||
it("correctly renders parallel calls", function() { | ||
var lProgram = renderer.render(fix.astSimpleParallel); | ||
var lExpectedProgram = 'msc {\n a,\n b,\n c;\n\n b -> a [label="{paral"],\n b =>> c [label="lel}"];\n}'; | ||
assert.equal(lProgram, lExpectedProgram); | ||
}); | ||
}); | ||
@@ -42,0 +52,0 @@ |
@@ -1,6 +0,6 @@ | ||
var assert = require("assert"); | ||
var assert = require("assert"); | ||
var renderer = require("../../../render/text/ast2msgenny"); | ||
var fix = require("../../astfixtures"); | ||
var utl = require("../../testutensils"); | ||
var path = require('path'); | ||
var fix = require("../../astfixtures"); | ||
var utl = require("../../testutensils"); | ||
var path = require('path'); | ||
@@ -7,0 +7,0 @@ describe('render/text/ast2msgenny', function() { |
@@ -41,2 +41,14 @@ var assert = require("assert"); | ||
it("correctly renders multiple options", function() { | ||
var lProgram = renderer.render(fix.astOptionsMscgen); | ||
var lExpectedProgram = 'msc {\n hscale="1.2",\n width="800",\n arcgradient="17",\n wordwraparcs="true";\n\n a;\n\n}'; | ||
assert.equal(lProgram, lExpectedProgram); | ||
}); | ||
it("correctly renders parallel calls", function() { | ||
var lProgram = renderer.render(fix.astSimpleParallel); | ||
var lExpectedProgram = 'msc {\n a,\n b,\n c;\n\n b -> a [label="{paral"],\n b =>> c [label="lel}"];\n}'; | ||
assert.equal(lProgram, lExpectedProgram); | ||
}); | ||
}); | ||
@@ -43,0 +55,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1664661
31523