mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 02:29:37 +02:00
rename tests
This commit is contained in:
@@ -29,26 +29,13 @@ test('mermaid cli help', function(t) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('sequence (actor) text default svg', function(t) {
|
[undefined, 'fo', 'tspan', 'old'].forEach(function(textPlacement) {
|
||||||
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) {
|
|
||||||
test('sequence svg text placelment: '+textPlacement, function(t) {
|
test('sequence svg text placelment: '+textPlacement, function(t) {
|
||||||
t.plan(1);
|
t.plan(1);
|
||||||
var args = [ "--svg",
|
var args = [ "--svg",
|
||||||
"--outputDir=" + test_dir,
|
"--outputDir=" + test_dir,
|
||||||
"--outputSuffix=_"+textPlacement,
|
textPlacement===undefined ? "" : "--outputSuffix=_"+textPlacement,
|
||||||
"--sequenceConfig="+test_dir+path.sep+"sequence_text_"+textPlacement+".cfg",
|
textPlacement===undefined ? "" : "--sequenceConfig="+test_dir+path.sep+"sequence_text_"+textPlacement+".cfg",
|
||||||
test_dir+"sequence_text.mmd",
|
test_dir+"sequence_text.mmd",
|
||||||
]
|
]
|
||||||
exec_mermaid(args.join(" "),
|
exec_mermaid(args.join(" "),
|
Reference in New Issue
Block a user