From ddceec68a20e67be0d19bc263a77e4ce8d83112d Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 21:15:28 -0500 Subject: [PATCH] Improve --options tests. --- test/test-stdout.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/test-stdout.js b/test/test-stdout.js index 73257dc..935a5ff 100644 --- a/test/test-stdout.js +++ b/test/test-stdout.js @@ -92,6 +92,8 @@ describe('Testing Ouput interface', function () { [ 'build', 'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json', + 'to', + 'test/sandbox/temp/janeq-1.all', '-o', "{ theme: 'compact', debug: true, pdf: 'wkhtmltopdf' }"], [ 'Applying COMPACT theme', '(with wkhtmltopdf)'] ); @@ -100,7 +102,22 @@ describe('Testing Ouput interface', function () { [ 'build', 'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json', + 'to', + 'test/sandbox/temp/janeq-2.all', '--options', "test/hmr-options.json"], [ 'Applying POSITIVE theme'] ); + + run('Explicit command line options should override --options', + [ + 'build', + 'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json', + 'to', + 'test/sandbox/temp/janeq-3.all', + '--options', + "test/hmr-options.json", + "-t", + "modern" + ], + [ 'Applying MODERN theme'] ); });