commonform-terminal
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "commonform-terminal", | ||
"description": "display Common Forms at text terminals", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/commonform/commonform-terminal/issues", |
@@ -33,3 +33,3 @@ ```javascript | ||
")." ] }, | ||
{ /* no blanks */ }, | ||
[ /* no blank values */ ], | ||
{ /* no options */ }), | ||
@@ -40,4 +40,4 @@ [ " This \u001b[35mAgreement\u001b[39m (this \"", | ||
"\u001b[35mAgreement\u001b[39m (the \"\u001b[32mEffective ", | ||
"Date\u001b[39m\") by and between \u001b[31m\u001b[4m[•]", | ||
"\u001b[24m\u001b[39m, a \u001b[31m\u001b[4m[•]", | ||
"Date\u001b[39m\") by and between \u001b[31m\u001b[4m[_]", | ||
"\u001b[24m\u001b[39m, a \u001b[31m\u001b[4m[_]", | ||
"\u001b[24m\u001b[39m (\"\u001b[32mCompany", | ||
@@ -48,2 +48,10 @@ "\u001b[39m\") and the several purchasers named in \u001b[33m", | ||
"Party\u001b[39m\")." ].join('')) | ||
assert.equal( | ||
terminal( | ||
{ "content": [ { "blank": "" } ] }, | ||
[ { blank: [ 'content', 0 ], | ||
value: 'NewCo, Inc.' } ], | ||
{ /* no options */ }), | ||
" \u001b[31m\u001b[4m[NewCo, Inc.]\u001b[24m\u001b[39m") | ||
``` |
@@ -25,3 +25,7 @@ /* Copyright Kyle E. Mitchell | ||
} else if (element.hasOwnProperty('blank')) { | ||
return chalk.red.underline('[_]'); | ||
if (element.blank === undefined) { | ||
return chalk.red.underline('[_]'); | ||
} else { | ||
return chalk.red.underline('[' + element.blank + ']'); | ||
} | ||
} else if (element.hasOwnProperty('heading')) { | ||
@@ -28,0 +32,0 @@ var numbering = element.numbering; |
7150
118
55