mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 00:10:15 +00:00
Add tests for raw JSON and file via --options / -o.
This commit is contained in:
parent
f965bf456a
commit
342b960f63
4
test/hmr-options.json
Normal file
4
test/hmr-options.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"theme": "positive",
|
||||
"debug": true
|
||||
}
|
@ -88,4 +88,19 @@ describe('Testing Ouput interface', function () {
|
||||
run('HMR should output help doc with --help',
|
||||
['--help'], [ manPage ]);
|
||||
|
||||
run('HMR should accept raw JSON via --options',
|
||||
[
|
||||
'build',
|
||||
'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json',
|
||||
'-o',
|
||||
"{ theme: 'compact', debug: true, pdf: 'wkhtmltopdf' }"],
|
||||
[ 'Applying COMPACT theme', '(with wkhtmltopdf)'] );
|
||||
|
||||
run('HMR should accept a JSON settings file via --options',
|
||||
[
|
||||
'build',
|
||||
'node_modules/fresh-test-resumes/src/jane-fullstacker.fresh.json',
|
||||
'--options',
|
||||
"test/hmr-options.json"],
|
||||
[ 'Applying POSITIVE theme'] );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user