Skip to content

Commit 1300535

Browse files
committed
Fixes failing test.
Merges the left object with the current right object, then adding to the final result claim.
1 parent e6294fe commit 1300535

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ResponseValidator.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,12 @@ export class ResponseValidator {
187187
}
188188
}
189189
else if (result[name] !== value) {
190-
result[name] = [result[name], value];
190+
if (typeof value === 'object') {
191+
result[name] = this._mergeClaims(result[name], value);
192+
}
193+
else {
194+
result[name] = [result[name], value];
195+
}
191196
}
192197
}
193198
}

0 commit comments

Comments
 (0)