title: Error:Uncaught AssertionError: expected { Object (response) } to equal { Object (response) }
body: <p>I am facing an issue in test case when i am trying to do <code>deepEqual</code> where i am trying to compare the exact structure of result data with sample data.</p>
  
  <p>the above is my sample json data which i created with the result of the actual data.</p>
  
  <p>Code:</p>
  
  <pre><code>it('comparing structures',()=&gt;{
          var result = instance.parseResponse(input,esResponse);
          console.log(result);
          assert.deepEqual( result, expectedJSON);
      });
  </code></pre>
  
  <p>Here in console i am getting the result .</p>
  
  <p><a href="https://i.stack.imgur.com/5uWw3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5uWw3.png" alt="enter image description here"></a></p>
  
  <p>Taking the result i am creating the sample data .</p>
  
  <p>Code :</p>
  
  <pre><code>    var expectedJSON={
      "response":{
      "aggregate":{
          "average":43.833333333333336,
          "count":6,
          "max":90,
          "min":10,
          "total":263
      },
      "endDate":"Tue Jul 05 2016 05:30:00 GMT+0530 (India Standard Time)",
      "groupBy":"datetime",
      "metricType":"distance_metric",
      "quarters":[{
          "aggregate":{
              "average":0,
              "count":undefined,
              "max":0,
              "min":0,
              "total":0
          },
          "quarter":4,
          "startDate":"Invalid Date"
      }],
      "startDate":"Tue Jan 12 2016 05:30:00 GMT+0530 (India Standard Time)",
      "type":"person"
  }
  };
  </code></pre>
  
  <p>I am doing this because i need to create the exact Json structure and let anything may be the result the structure should match .</p>
  
  <p>but i am getting the fail test case </p>