Folded util.objectDifference into MatchersUtil
This was always an implementation detail of objectKeysAreDifferentFormatter, and didn't really do what its name suggested. * #1966
This commit is contained in:
@@ -75,12 +75,6 @@ getJasmineRequireObj().util = function(j$) {
|
||||
return descriptor;
|
||||
};
|
||||
|
||||
util.objectDifference = function(obj, toRemove) {
|
||||
return j$.MatchersUtil.keys(obj)
|
||||
.filter(key => !util.has(toRemove, key))
|
||||
.map(key => [key, obj[key]]);
|
||||
};
|
||||
|
||||
util.has = function(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user