Make toEqual matcher report the difference between objects
- Mismatches deep within object/array structures are pinpointed with a JsonPath-like syntax.
This commit is contained in:
committed by
Ben Christel
parent
5a76e59d5b
commit
d5e6bf47ed
10
src/core/matchers/NullDiffBuilder.js
Normal file
10
src/core/matchers/NullDiffBuilder.js
Normal file
@@ -0,0 +1,10 @@
|
||||
getJasmineRequireObj().NullDiffBuilder = function(j$) {
|
||||
return function() {
|
||||
return {
|
||||
withPath: function(_, block) {
|
||||
block();
|
||||
},
|
||||
record: function() {}
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user