aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Torkhov <[email protected]>2017-03-07 23:55:34 +0400
committerGitHub <[email protected]>2017-03-07 23:55:34 +0400
commit4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5 (patch)
tree563decd7c14ac2de4c5f97c23d698f4dc5a6b0a1
parent963c3fb05ca278984963f64878da7c6d254c47d1 (diff)
downloadfaker-4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5.tar.xz
faker-4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5.zip
Add test for faker.date.soon
-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 () {