From b73698849d987895ae5bcd8da5b123ad3182616a Mon Sep 17 00:00:00 2001 From: whyzdev Date: Sun, 18 Dec 2016 18:05:37 -0500 Subject: [PATCH] rename tests --- ...est-run-samples.js => cli_test-samples.js} | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) rename test/{cli_test-run-samples.js => cli_test-samples.js} (70%) diff --git a/test/cli_test-run-samples.js b/test/cli_test-samples.js similarity index 70% rename from test/cli_test-run-samples.js rename to test/cli_test-samples.js index 5ac8f5351..a0eafc0b5 100644 --- a/test/cli_test-run-samples.js +++ b/test/cli_test-samples.js @@ -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(" "),