1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00

Improve --options tests.

This commit is contained in:
hacksalot 2016-01-11 21:15:28 -05:00
parent b961fd1c07
commit ddceec68a2

View File

@ -92,6 +92,8 @@ describe('Testing Ouput interface', function () {
[ [
'build', 'build',
'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json', 'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json',
'to',
'test/sandbox/temp/janeq-1.all',
'-o', '-o',
"{ theme: 'compact', debug: true, pdf: 'wkhtmltopdf' }"], "{ theme: 'compact', debug: true, pdf: 'wkhtmltopdf' }"],
[ 'Applying COMPACT theme', '(with wkhtmltopdf)'] ); [ 'Applying COMPACT theme', '(with wkhtmltopdf)'] );
@ -100,7 +102,22 @@ describe('Testing Ouput interface', function () {
[ [
'build', 'build',
'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json', 'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json',
'to',
'test/sandbox/temp/janeq-2.all',
'--options', '--options',
"test/hmr-options.json"], "test/hmr-options.json"],
[ 'Applying POSITIVE theme'] ); [ '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'] );
}); });