From 2192aaf6212c23f8c5b5311eb41a370a4c9e4949 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 2 Aug 2020 20:35:05 +0300 Subject: [PATCH] updated tests... Signed-off-by: Alex A. Naanou --- package.json | 2 +- test.js | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index b78a887..aed8a87 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-object", - "version": "5.1.15", + "version": "5.1.16", "description": "", "main": "object.js", "scripts": { diff --git a/test.js b/test.js index f6ea012..447a8d8 100755 --- a/test.js +++ b/test.js @@ -898,8 +898,7 @@ if(typeof(__filename) != 'undefined' argv.Parser({ // doc... usage: `$SCRIPTNAME [OPTIONS] [CHAIN] ...`, - doc: object.normalizeTextIndent( - `Run tests on object.js module. + doc: object.text`Run tests on object.js module. Tests run by $SCRIPTNAME can be specified in one of the following formats: @@ -919,7 +918,7 @@ if(typeof(__filename) != 'undefined' Zero or more sets of tests can be specified. When no tests specified $SCRIPTNAME will run all tests. - `), + `, examples: [ ['$ ./$SCRIPTNAME', 'run all tests.'.gray], @@ -939,8 +938,8 @@ if(typeof(__filename) != 'undefined' '-list': { doc: 'list available tests.', handler: function(){ - console.log(object.normalizeTextIndent( - `Tests run by %s can be of the following forms: + console.log( + object.text`Tests run by %s can be of the following forms: : @@ -961,7 +960,7 @@ if(typeof(__filename) != 'undefined' Standalone test cases: ${ Object.keys(cases).join('\n\ ') } - `), this.scriptName) + `, this.scriptName) process.exit() }}, '-verbose': {