Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Fixes failing test.
Browse files Browse the repository at this point in the history
Merges the left object with the current right object, then adding to the final result claim.
  • Loading branch information
HenrikWM committed Feb 8, 2019
1 parent e6294fe commit 1300535
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ResponseValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ export class ResponseValidator {
}
}
else if (result[name] !== value) {
result[name] = [result[name], value];
if (typeof value === 'object') {
result[name] = this._mergeClaims(result[name], value);
}
else {
result[name] = [result[name], value];
}
}
}
}
Expand Down

0 comments on commit 1300535

Please sign in to comment.