Skip to content

Commit

Permalink
Merge af583e4 into bc565eb
Browse files Browse the repository at this point in the history
  • Loading branch information
ltegman committed Oct 11, 2016
2 parents bc565eb + af583e4 commit 34674ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/match_body.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function deepEqualExtended(spec, body) {
if (spec && spec.constructor === RegExp) {
return spec.test(body);
}
if (spec && spec.constructor === Object && body) {
if (spec && spec.constructor === Object || spec.constructor === Array && body) {
var keys = Object.keys(spec);
for (var i = 0; i < keys.length; i++) {
if (!deepEqualExtended(spec[keys[i]], body[keys[i]])) {
Expand Down

0 comments on commit 34674ca

Please sign in to comment.