Sha256: e520eccbbc2dd9ea557aed5643ba4c1d007777f2628df86613d0a4c490e6e689
Contents?: true
Size: 474 Bytes
Versions: 19
Compression:
Stored size: 474 Bytes
Contents
var moment = require('./../moment.js'); var base = moment('2013-05-25'); function createTest(unit) { return { fn: function () { base.get(unit); }, async: false }; } var units = ['second', 'minute', 'hour', 'date', 'day', 'isoWeek', 'week', 'month', 'quarter', 'year']; var tests = units.reduce(function (tests, unit) { tests['get ' + unit] = createTest(unit); return tests; }, {}); module.exports = { name: 'get', tests: tests };
Version data entries
19 entries across 19 versions & 1 rubygems