hunk.code_window:     var result = startOfHour(date)
       expect(result).to.be.eql(new Date('2014-09-02T11:00:00'))
     })
     it('accepts string as a date', function() {
  
hunk.labels: keep replace keep keep keep
hunk.after_edit:     expect(result).to.be.eql(new Date(2014, 8 /* Sep */, 2, 11))
  
hunk.file_path: src/__tests__/start_of_hour_test.js
hunk.type: replace
file: /**
   * Returns end of an hour for given date. Date will be in local timezone.
   * @param {date|string} dirtyDate
   * @returns {date}
   */
  var endOfHour = function(dirtyDate) {
    var date = new Date(dirtyDate)
    date.setMinutes(59, 59, 999)
    return date
  }
  
  module.exports = endOfHour
  
  