mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
made output of assert.array(..) better...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3c47f6b85d
commit
7ef4842646
@ -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": {
|
||||||
|
|||||||
4
test.js
4
test.js
@ -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){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user