Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove gh-pages dir
- Loading branch information
Showing
4 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
var exec = require('child_process').exec | ||
, assert = require('assert') | ||
, Hogan = require('../lib/hogan.js'); | ||
|
||
|
||
// help text | ||
exec('node bin/hulk', function (error, stdout, stderr) { | ||
if (error) throw error; | ||
assert(typeof stdout == 'string', 'it should have help text.'); | ||
assert(/USAGE/.test(stdout), 'has USAGE text'); | ||
assert(/NOTE/.test(stdout), 'has NOTE text about wildcard'); | ||
}) | ||
|
||
// templates wildcard | ||
exec('node bin/hulk test/templates/*', function (error, stdout, stderr) { | ||
if (error) throw error; | ||
eval(stdout); | ||
assert(typeof templates == 'object', 'defineed a templates object'); | ||
assert(typeof templates.list == 'object', 'defined a templates.list object'); | ||
assert(typeof templates.list.r == 'function', 'defined a templates.list.r function'); | ||
assert(templates.list.r() == '<ul>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n</ul>') | ||
}); | ||
|
||
// templates wildcard w/ extension | ||
exec('node bin/hulk test/templates/*.mustache', function (error, stdout, stderr) { | ||
if (error) throw error; | ||
eval(stdout); | ||
assert(typeof templates == 'object', 'defineed a templates object'); | ||
assert(typeof templates.list == 'object', 'defined a templates.list object'); | ||
assert(typeof templates.list.r == 'function', 'defined a templates.list.r function'); | ||
assert(templates.list.r() == '<ul>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n</ul>') | ||
}); | ||
|
||
// templates single file | ||
exec('node bin/hulk test/templates/list.mustache', function (error, stdout, stderr) { | ||
if (error) throw error; | ||
eval(stdout); | ||
assert(typeof templates == 'object', 'defineed a templates object'); | ||
assert(typeof templates.list == 'object', 'defined a templates.list object'); | ||
assert(typeof templates.list.r == 'function', 'defined a templates.list.r function'); | ||
assert(templates.list.r() == '<ul>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n<li></li>\n</ul>') | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters