atecarlos / protractor-http-mock

A library designed to work alongside Protractor for setting up mocks for your HTTP ajax requests.
MIT License
173 stars 70 forks source link

matchData -> matchProperty #39

Closed kaimon closed 9 years ago

kaimon commented 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])

atecarlos commented 9 years ago

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.