Comparing version 0.1.1 to 0.1.2
@@ -240,2 +240,6 @@ var difference = require('lodash.difference'); | ||
isoWeekDay: function (d) { | ||
return d.getDay() || 7; | ||
}, | ||
}; | ||
@@ -242,0 +246,0 @@ |
{ | ||
"name": "instadate", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "instadate.js", |
@@ -427,1 +427,13 @@ var test = require('tape'); | ||
}); | ||
test('isoWeekDay', function (t) { | ||
var d = new Date('Mon Jan 18 2016 13:07:17 GMT+0200 (EET)'); | ||
t.equal(instadate.isoWeekDay(d), 1); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 1)), 2); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 2)), 3); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 3)), 4); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 5)), 6); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 6)), 7); | ||
t.equal(instadate.isoWeekDay(instadate.addDays(d, 7)), 1); | ||
t.end(); | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23040
570