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

import isFriday from '.'

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