mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 02:20:08 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ab400e432d
commit
779e842923
@ -28,6 +28,6 @@
|
||||
"devDependencies": {
|
||||
"c8": "*",
|
||||
"colors": "^1.4.0",
|
||||
"ig-argv": "^2.0.1"
|
||||
"ig-argv": "^2.2.2"
|
||||
}
|
||||
}
|
||||
|
||||
13
test.js
13
test.js
@ -911,7 +911,7 @@ if(typeof(__filename) != 'undefined'
|
||||
Each of the items in the test spec can be a "*" indicating
|
||||
that all relevant items should be used, for example:
|
||||
|
||||
${ '$ ./$SCRIPTNAME basic:*:*' }
|
||||
$ ./$SCRIPTNAME basic:*:*
|
||||
|
||||
Here $SCRIPTNAME is instructed to run all tests and modifiers
|
||||
only on the basic setup.
|
||||
@ -965,9 +965,12 @@ if(typeof(__filename) != 'undefined'
|
||||
process.exit() }},
|
||||
|
||||
'-verbose': {
|
||||
doc: 'verbose mode (defaults to: $VERBOSE).',
|
||||
doc: 'verbose mode',
|
||||
env: 'VERBOSE',
|
||||
handler: function(){
|
||||
module.VERBOSE = true }},
|
||||
|
||||
'@*': undefined,
|
||||
})
|
||||
.then(function(chains){
|
||||
// run the tests...
|
||||
@ -978,7 +981,8 @@ if(typeof(__filename) != 'undefined'
|
||||
: runner('*', stats)
|
||||
|
||||
// print stats...
|
||||
console.log('Tests run:', stats.tests,
|
||||
console.log(
|
||||
'Tests run:', stats.tests,
|
||||
' Assertions:', stats.assertions,
|
||||
' Failures:', stats.failures,
|
||||
` (${stats.time}ms)`.bold.black)
|
||||
@ -986,8 +990,7 @@ if(typeof(__filename) != 'undefined'
|
||||
// report error status to the OS...
|
||||
process.exit(stats.failures)
|
||||
})
|
||||
(process.argv)
|
||||
}
|
||||
(process.argv) }
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user