Closed kaimon closed 9 years ago
function matchProperty calls angular.equals to do deep comparisons of expectations and config mocks.
Shouldn't the calls have a json.parse ? Otherwise data configs will come through as strings.
angular.equals(expectationRequest[property], JSON.parse(config[property])
Hello @kaimon , could you provide a more concrete example of a real world problem? I have not heard of any issues with anything related to this so far.
function matchProperty calls angular.equals to do deep comparisons of expectations and config mocks.
Shouldn't the calls have a json.parse ? Otherwise data configs will come through as strings.
angular.equals(expectationRequest[property], JSON.parse(config[property])