diff options
| author | lbuerste <[email protected]> | 2021-03-03 09:31:13 +0100 |
|---|---|---|
| committer | Marak <[email protected]> | 2021-03-03 20:14:45 -0500 |
| commit | 43a2a9f83ec839eaad3d788d6810c72ccf26eaa5 (patch) | |
| tree | 7924d805a56e9a3ba49514cecb29c1dbe17dfc4f /lib | |
| parent | 97f54e854728c26056851a213c713de401a04470 (diff) | |
| download | faker-43a2a9f83ec839eaad3d788d6810c72ccf26eaa5.tar.xz faker-43a2a9f83ec839eaad3d788d6810c72ccf26eaa5.zip | |
Issue 1114: new datatypes module
Current status:
- changed datetime test that checks seeding to not assert something because it does not work
- changed some asserts to strictEqual instead of using .ok(a===b)
- renamed datatype.date to datatype.datetime
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/datatype.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/datatype.js b/lib/datatype.js index d1ae2b7a..423ef3a1 100644 --- a/lib/datatype.js +++ b/lib/datatype.js @@ -80,11 +80,12 @@ function Datatype (faker, seed) { /**
* method returns a Date object using a random number of milliseconds since 1. Jan 1970 UTC
+ * Caveat: seeding is not working
*
* @method faker.datatype.date
* @param {mixed} options, pass min OR max as number of milliseconds since 1. Jan 1970 UTC
*/
- this.date = function (options) {
+ this.datetime = function (options) {
if (typeof options === "number") {
options = {
max: options
@@ -221,8 +222,6 @@ function Datatype (faker, seed) { };
-
-
return this;
}
|
