summaryrefslogtreecommitdiff
path: root/date-fns/src/isLastDayOfMonth/benchmark.js
blob: 6ce43bcd9526e42869c50580a1694181bfa7cf6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// @flow
/* eslint-env mocha */
/* global suite, benchmark */

import isLastDayOfMonth from '.'

suite('isLastDayOfMonth', function () {
  benchmark('date-fns', function () {
    return isLastDayOfMonth(this.date)
  })
}, {
  setup: function () {
    this.date = new Date()
  }
})