mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 19:10:11 +00:00
monor tweaks and notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
084315f078
commit
dfe69bbb1f
13
test.js
13
test.js
@ -14,7 +14,16 @@ var object = require('./object')
|
|||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
module.VERBOSE = false
|
// NOTE: to test in verbose mode do:
|
||||||
|
// $ export VERBOSE=1 && npm test
|
||||||
|
// or
|
||||||
|
// $ export VERBOSE=1 && node test.js
|
||||||
|
// or set this manually after require('./test') but before running
|
||||||
|
// the runner(..)
|
||||||
|
// XXX this may change in the future...
|
||||||
|
module.VERBOSE = process ?
|
||||||
|
process.env.VERBOSE
|
||||||
|
: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -197,7 +206,7 @@ var tests = {
|
|||||||
.map(function([k, o]){
|
.map(function([k, o]){
|
||||||
// NOTE: not all callables are instances of Function...
|
// NOTE: not all callables are instances of Function...
|
||||||
//assert(typeof(o) == 'function'
|
//assert(typeof(o) == 'function'
|
||||||
// && o instanceof Function, 'instanceof Function')
|
// && o instanceof Function, 'instanceof Function', k)
|
||||||
return typeof(o) == 'function'
|
return typeof(o) == 'function'
|
||||||
&& assert(o(), 'call', k) }) },
|
&& assert(o(), 'call', k) }) },
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user