made output of assert.array(..) better...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-05 05:54:16 +03:00
parent 3c47f6b85d
commit 7ef4842646
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-test", "name": "ig-test",
"version": "1.5.8", "version": "1.5.9",
"description": "experimental test runner....", "description": "experimental test runner....",
"main": "test.js", "main": "test.js",
"bin": { "bin": {

View File

@ -235,7 +235,9 @@ object.Constructor('Assert', {
array: function(value, expected, msg){ array: function(value, expected, msg){
msg = msg || '' msg = msg || ''
return this(arrayCmp(value, expected), return this(arrayCmp(value, expected),
msg +':', 'expected:', expected, 'got:', value) }, msg +':',
'\n expected:', expected,
'\n got:', value) },
// output... // output...
log: function(...args){ log: function(...args){