api-test
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -79,9 +79,8 @@ 'use strict' | ||
if (options.onOut) { | ||
options.onOut(that, out) | ||
} | ||
try { | ||
res.statusCode.should.be.equal(that.statusCode) | ||
check(out, expected, options.strict) | ||
if (options.onOut) { | ||
options.onOut(that, out) | ||
} | ||
} catch (e) { | ||
@@ -88,0 +87,0 @@ console.log('\n-----\n' + |
{ | ||
"name": "api-test", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Sitegui <sitegui@sitegui.com.br>", | ||
@@ -5,0 +5,0 @@ "description": "API testing made simple", |
@@ -13,3 +13,3 @@ 'use strict' | ||
module.exports = function (value, useColors, highlightPath) { | ||
var finalStr = '\n', | ||
var finalStr = '', | ||
indentLevel = 0, | ||
@@ -82,6 +82,7 @@ highlight = false | ||
value.forEach(function (value, i) { | ||
var subpath = path ? path + '.' + i : String(i) | ||
if (i) { | ||
pushStr(',', false, true) | ||
} | ||
pushJsonValue(value, path) | ||
pushJsonValue(value, subpath) | ||
}) | ||
@@ -88,0 +89,0 @@ indentLevel-- |
63691
1859