title: Tests on jest and new Date()
body: <p>I'm trying to test function similar on this: </p>
  
  <pre><code>function foo() {
      return {
          key_a: "val_a",
          key_b: new Date()
  };
  </code></pre>
  
  <p>How can I make an expected object for test for this case?</p>
  
  <pre><code>const expectedObject = {
      key_a: "val_a",
      key_b: new Date()
  }
  expect(foo()).toEqual(expectedObject)?
  - Expected
  + Received
  - "key_b": 2019-01-23T14:04:03.060Z,
  + "key_b": 2019-01-23T14:04:03.061Z,
  </code></pre>