blob: df23caf2a153e7446631a03b8cc145a6b64ddaf1 (
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 eachWeekendOfInterval from '.'
suite('eachWeekendOfInterval', function () {
benchmark('date-fns', function () {
return eachWeekendOfInterval({start: this.dateStart, end: this.dateEnd})
})
}, {
setup: function () {
this.dateStart = new Date(2022, 0, 1)
this.dateEnd = new Date(2022, 11, 31)
}
})
|