Skip to content

Instantly share code, notes, and snippets.

@coderarity
Created September 18, 2012 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderarity/fe8b220f8fe65335333f to your computer and use it in GitHub Desktop.
Save coderarity/fe8b220f8fe65335333f to your computer and use it in GitHub Desktop.
coderarity@fluttershy:/Volumes/External HD/coderarity/sly-utile$ npm test
> utile@0.1.5 test /Volumes/External HD/coderarity/sly-utile
> vows --spec
[ 'helloWorld', 'directory' ]
♢ utile/file
When using utile the .file.readJsonSync() function
✓ should return correct JSON structure
When using utile the .file.readJson() function
✓ should return correct JSON structure
♢ utile/args
When using utile the args function
✓ should be a function
utile.rargs() with no arguments
✓ should return an empty object
utile.rargs() with simple arguments
✓ should return an array with three items
utile.rargs() with a simple slice
✓ should return an array with three items
utile.args() with no arguments
✓ should return an empty Array
utile.args() with simple arguments
✓ should return an array with three items
✓ should return lookup helpers
♢ utile/randomString
When using utile the randomString() function
✓ should return 16 characters that are actually random by default
When using utile the randomString() function when you can asked for different length strings
✓ where they actually are of length 4, 128
♢ utile/require-directory
When using utile the requireDir() function
✓ should contain all wanted modules
When using utile the requireDirLazy() function
✓ all properties should be getters
✗ should contain all wanted modules
» expected {
helloWorld: { me: 'helloWorld.js' },
directory: { me: 'directory/index.js' }
},
got { helloWorld: { me: 'helloWorld.js' }, directory: { me: 'directory/index.js' } } (deepEqual) // macros.js:27
♢ utile
When using utile
✓ it should have the same methods as the util module
✓ it should have the correct methods defined
✓ the mixin() method
✓ the clone() method
✓ the createPath() method
✓ the capitalize() method
✓ the escapeRegExp() method
✓ the underscoreToCamel() method
✓ the camelToUnderscore() method
✗ Broken » 22 honored ∙ 1 broken (0.167s)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment