title: sinon.js test moment() functions.
body: <p>I need to test the following 4 functions which involving moment js. I do not know how I can control over the current time now. The functions are written in coffee script. It's ember.js. Could anyone give some help please. Thanks.</p>
  
  <pre><code>start: moment().subtract('days', 30).startOf('day').format('LLL')
    end: moment().format('LLL')
  
    startTime: (-&gt;
      Date.parse(@get('start')).getTime()
    ).property('start')
  
    endTime: (-&gt;
      Date.parse(@get('end')).getTime()
    ).property('end')
  </code></pre>