rename tests

This commit is contained in:
whyzdev 2016-12-18 18:05:37 -05:00
parent e13c939583
commit b73698849d
1 changed files with 3 additions and 16 deletions

View File

@ -29,26 +29,13 @@ test('mermaid cli help', function(t) {
});
});
test('sequence (actor) text default svg', function(t) {
t.plan(1);
var args = [ "--svg",
"--outputDir=" + test_dir,
test_dir+"sequence_text.mmd",
]
exec_mermaid(args.join(" "),
function(error, stdout, stderr) {
t.notOk(error, 'no error code')
t.end()
});
});
['fo', 'tspan', 'old'].forEach(function(textPlacement) {
[undefined, 'fo', 'tspan', 'old'].forEach(function(textPlacement) {
test('sequence svg text placelment: '+textPlacement, function(t) {
t.plan(1);
var args = [ "--svg",
"--outputDir=" + test_dir,
"--outputSuffix=_"+textPlacement,
"--sequenceConfig="+test_dir+path.sep+"sequence_text_"+textPlacement+".cfg",
textPlacement===undefined ? "" : "--outputSuffix=_"+textPlacement,
textPlacement===undefined ? "" : "--sequenceConfig="+test_dir+path.sep+"sequence_text_"+textPlacement+".cfg",
test_dir+"sequence_text.mmd",
]
exec_mermaid(args.join(" "),