1
0
miroir de https://github.com/JuanCanham/HackMyResume.git synchronisé 2025-09-18 04:05:29 +01:00

Detect bad option files supplied via --options.

Cette révision appartient à :
hacksalot
2018-01-29 02:04:00 -05:00
Parent 12a14dadeb
révision 17259cedbf
19 fichiers modifiés avec 149 ajouts et 13 suppressions

Voir le fichier

@@ -0,0 +1,10 @@
{
// Set the default theme to "compact"
//"theme": "node_modules/jsonresume-theme-elegant",
//"theme": "jsonresume-theme-elegant",
"theme": "elegant",
// Change the "employment" section title text to "Work"
"sectionTitles": {
"employment": "Work"
}
}

Voir le fichier

@@ -143,9 +143,36 @@ describe('Testing Ouput interface', function () {
'to',
'test/sandbox/temp/janeq-3.all',
'--options',
"test/hmr-options.json",
"test/scripts/hmr-options.json",
"-t",
"modern"
],
[ 'Applying MODERN theme'] );
run('HMR should detect a missing or inaccessible options file',
[
'build',
'doesntmatter.json',
'to',
'dontcare.all',
'--options',
"test/scripts/hmr-options-nonexistent.json",
"-t",
"modern"
],
[ 'The specified options file is missing or inaccessible'] );
run('HMR should detect an invalid or malformed options file',
[
'build',
'doesntmatter.json',
'to',
'dontcare.all',
'--options',
"test/scripts/hmr-options-broken.json",
"-t",
"modern"
],
[ 'The specified options file is invalid'] );
});