title: In unit test how can I compare original object with scope copy and avoid angular $$hashKey
body: <p>I can explain my question in one image.</p>
  
  <p><img src="https://i.stack.imgur.com/3Bizf.png" alt="In unit test how can I compare original object with scope copy and avoid angular $$hashKey"></p>
  
  <p>In my unit test after some manipulations I want to check that <code>$scope.data</code> (first log message) is equal to original <code>data</code> object (second log message). I use mocha + chai and </p>
  
  <pre><code>expect(innerScope.data).to.deep.equal(data);
  </code></pre>
  
  <p>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?</p>