aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2017-09-08 13:13:55 -0400
committerGitHub <[email protected]>2017-09-08 13:13:55 -0400
commit4adcc929c7a063e56704b24b66ca1edc63b4e02a (patch)
tree979d48539e3eeda40531a1807e46dc5754cb561c /test
parentaf953d8f86934e19fd8a0d4ccc7d2a7b5c5d0552 (diff)
parent4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5 (diff)
downloadfaker-4adcc929c7a063e56704b24b66ca1edc63b4e02a.tar.xz
faker-4adcc929c7a063e56704b24b66ca1edc63b4e02a.zip
Merge pull request #487 from atorkhov/patch-2
[api] Added faker.date.soon
Diffstat (limited to 'test')
-rw-r--r--test/date.unit.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/date.unit.js b/test/date.unit.js
index ffbc3201..bd283d07 100644
--- a/test/date.unit.js
+++ b/test/date.unit.js
@@ -67,6 +67,16 @@ describe("date.js", function () {
});
+ describe("soon()", function () {
+ it("returns a date N days into the future", function () {
+
+ var date = faker.date.soon(30);
+
+ assert.ok(date >= new Date());
+ });
+
+ });
+
describe("between()", function () {
it("returns a random date between the dates given", function () {