mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 11:00:08 +00:00
updated tests...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
817fda0ef7
commit
2192aaf621
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-object",
|
"name": "ig-object",
|
||||||
"version": "5.1.15",
|
"version": "5.1.16",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
11
test.js
11
test.js
@ -898,8 +898,7 @@ if(typeof(__filename) != 'undefined'
|
|||||||
argv.Parser({
|
argv.Parser({
|
||||||
// doc...
|
// doc...
|
||||||
usage: `$SCRIPTNAME [OPTIONS] [CHAIN] ...`,
|
usage: `$SCRIPTNAME [OPTIONS] [CHAIN] ...`,
|
||||||
doc: object.normalizeTextIndent(
|
doc: object.text`Run tests on object.js module.
|
||||||
`Run tests on object.js module.
|
|
||||||
|
|
||||||
Tests run by $SCRIPTNAME can be specified in one of the
|
Tests run by $SCRIPTNAME can be specified in one of the
|
||||||
following formats:
|
following formats:
|
||||||
@ -919,7 +918,7 @@ if(typeof(__filename) != 'undefined'
|
|||||||
Zero or more sets of tests can be specified.
|
Zero or more sets of tests can be specified.
|
||||||
|
|
||||||
When no tests specified $SCRIPTNAME will run all tests.
|
When no tests specified $SCRIPTNAME will run all tests.
|
||||||
`),
|
`,
|
||||||
examples: [
|
examples: [
|
||||||
['$ ./$SCRIPTNAME',
|
['$ ./$SCRIPTNAME',
|
||||||
'run all tests.'.gray],
|
'run all tests.'.gray],
|
||||||
@ -939,8 +938,8 @@ if(typeof(__filename) != 'undefined'
|
|||||||
'-list': {
|
'-list': {
|
||||||
doc: 'list available tests.',
|
doc: 'list available tests.',
|
||||||
handler: function(){
|
handler: function(){
|
||||||
console.log(object.normalizeTextIndent(
|
console.log(
|
||||||
`Tests run by %s can be of the following forms:
|
object.text`Tests run by %s can be of the following forms:
|
||||||
|
|
||||||
<case>
|
<case>
|
||||||
<setup>:<test>
|
<setup>:<test>
|
||||||
@ -961,7 +960,7 @@ if(typeof(__filename) != 'undefined'
|
|||||||
Standalone test cases:
|
Standalone test cases:
|
||||||
${ Object.keys(cases).join('\n\
|
${ Object.keys(cases).join('\n\
|
||||||
') }
|
') }
|
||||||
`), this.scriptName)
|
`, this.scriptName)
|
||||||
process.exit() }},
|
process.exit() }},
|
||||||
|
|
||||||
'-verbose': {
|
'-verbose': {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user