title: I am having hard time writing Jest test for timer
body: <p>I am trying to write jest test for react-countdown-now timer. It should be pretty simple, but i am new to jest and i am having hard time writing it.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import Countdown, { zeroPad } from 'react-countdown-now';
  import "./TimeOut.scss";
   
  const renderer = ({ minutes, seconds, completed }) =&gt; {
    return &lt;div&gt;&lt;span&gt;{zeroPad(minutes, 2)}:{zeroPad(seconds, 2)}&lt;/span&gt;&lt;/div&gt;;
  };
  
  class Timer extends React.Component {
    constructor(props) {
      super(props);
      this.state = {
        timeout: props.timeout * 60 * 1000
      };
    }
  
    render() {
      return (
        &lt;Countdown
          date={Date.now() + this.state.timeout}
          renderer={renderer}/&gt;
      );
    }
  }
  
  export default Timer;</code></pre>
  </div>
  </div>
  </p>