I can explain my question in one image.
In my unit test after some manipulations I want to check that $scope.data
(first log message) is equal to original data
object (second log message). I use mocha + chai and
expect(innerScope.data).to.deep.equal(data);
It is used in directive, so angular adds $$hashKey's to each object and of course my expectation is wrong. How can I test it in other way?