blob: 45d8e441c0719d04fb0af642e20622dcdf0e5095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// @flow
/* eslint-env mocha */
/* global suite, benchmark */
import eachDayOfInterval from '.'
suite('eachDayOfInterval', function () {
benchmark('date-fns', function () {
return eachDayOfInterval({start: this.dateA, end: this.dateB})
})
}, {
setup: function () {
this.dateA = new Date()
this.dateB = new Date(this.dateA.getTime() + 604800000)
}
})
|