chai-datetime
Advanced tools
Comparing version
@@ -449,2 +449,6 @@ (function (plugin) { | ||
assert.closeToTime = function (val, exp, delta, msg) { | ||
new chai.Assertion(val, msg).to.be.closeToTime(exp, delta); | ||
}; | ||
assert.withinTime = function (val, expFrom, expTo, msg) { | ||
@@ -451,0 +455,0 @@ new chai.Assertion(val, msg).to.be.withinTime(expFrom, expTo); |
{ | ||
"name": "chai-datetime", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chai", |
@@ -1184,2 +1184,6 @@ (function (test) { | ||
it(".closeToTime", function () { | ||
assert.closeToTime(this.subject, new Date(2013, 4, 30, 16, 6), 90); | ||
}); | ||
it(".withinTime", function () { | ||
@@ -1186,0 +1190,0 @@ assert.withinTime( |
54368
0.47%1404
0.43%