Open snoblenet opened 6 years ago
When comparing two objects that have two non-matching key/value pairs, I'm only alerted to one of the differences. This occurs in both chai-match-pattern and the CLI:
chai-match-pattern
> const matchPattern = require('lodash-match-pattern'); undefined > matchPattern { [Function: matchPattern] use: [Function], getLodashModule: [Function] } > matchPattern({ a: 1, b: 1, c: 1 }, { a: 2, b:2, c:1 }) '{a: 1} didn\'t match target {a: 2}'
However, I believe you are using Checkit, and it's documentation indicates that a hash of all non-matching key/values is provided:
Checkit
https://github.com/tgriesser/checkit#checkiterror
Is it possible for lodash-match-pattern to start passing on all this information?
lodash-match-pattern
When comparing two objects that have two non-matching key/value pairs, I'm only alerted to one of the differences. This occurs in both
chai-match-pattern
and the CLI:However, I believe you are using
Checkit
, and it's documentation indicates that a hash of all non-matching key/values is provided:https://github.com/tgriesser/checkit#checkiterror
Is it possible for
lodash-match-pattern
to start passing on all this information?