diff options
| author | LBuerstmayr <[email protected]> | 2021-03-01 22:46:26 +0100 |
|---|---|---|
| committer | Marak <[email protected]> | 2021-03-03 20:14:45 -0500 |
| commit | 7ad22c2e2aae2f5e6215bcdb91cf3fd28e727d92 (patch) | |
| tree | 03941188e92583a105c8ef17fde438fb1b52bdcf /build/src | |
| parent | 58c61afb1b8baa160add593e5af7c110de011968 (diff) | |
| download | faker-7ad22c2e2aae2f5e6215bcdb91cf3fd28e727d92.tar.xz faker-7ad22c2e2aae2f5e6215bcdb91cf3fd28e727d92.zip | |
Issue 1114: New datatype module
Current status:
- moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype
- moved respective test from random.unit to datatype.unit
- tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called
- adapted all lib files that use moved methods (mostly number)
- adapted tests of respective files to spy on the correct method
- adapted README in order to promote usage of method that logs a DeprecationWarning
Diffstat (limited to 'build/src')
| -rw-r--r-- | build/src/docs.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/src/docs.md b/build/src/docs.md index 8da7ae35..0f2b6e89 100644 --- a/build/src/docs.md +++ b/build/src/docs.md @@ -99,12 +99,12 @@ If you want consistent results, you can set your own seed: ```js faker.seed(123); -var firstRandom = faker.random.number(); +var firstRandom = faker.datatype.number(); // Setting the seed again resets the sequence. faker.seed(123); -var secondRandom = faker.random.number(); +var secondRandom = faker.datatype.number(); console.log(firstRandom === secondRandom); ``` |
