diff options
| author | Alexey Torkhov <[email protected]> | 2017-03-07 23:55:34 +0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-07 23:55:34 +0400 |
| commit | 4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5 (patch) | |
| tree | 563decd7c14ac2de4c5f97c23d698f4dc5a6b0a1 | |
| parent | 963c3fb05ca278984963f64878da7c6d254c47d1 (diff) | |
| download | faker-4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5.tar.xz faker-4ff046152e7d1c3214cda1e1ba62ee9f94e54ae5.zip | |
Add test for faker.date.soon
| -rw-r--r-- | test/date.unit.js | 10 |
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 () { |
