aboutsummaryrefslogtreecommitdiff
path: root/test/random.unit.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21chore(test): migrate to vitest (#235)Shinigami1-251/+0
2022-01-18feat!: support tree-shaking (#152)Shinigami1-1/+1
2022-01-14feat: migrate random (#91)Shinigami1-1/+1
2022-01-13chore: format tests (#67)Shinigami1-56/+74
2022-01-09fix(tests): fix failing tests (#12)Mateus Dadalto1-1/+1
Co-authored-by: Shinigami <[email protected]>
2021-03-25👍🏼Remove old public API from vendor/mersenne.jsCharles Lowell1-1/+1
2021-03-22Linting fixes for `./test`Marak1-5/+5
2021-03-03Fix deprecation warning testsMarak1-5/+5
2021-03-03Updates deprecation messageMarak1-5/+5
Fixes typo is jsdoc
2021-03-03Issue 1114: new datatypes modulelbuerste1-17/+18
Current status: - implemented array method and respective tests - added a few semicolons - changed test with seeding of datatype.date to only check date, not time - added test for generating json with set seed
2021-03-03Issue 1114: new datatypes modulelbuerste1-0/+23
Current status: - moved tests with seeding problem back to random.unit - implemented date method - added datatype module to seed funtion - added tests for date method
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-185/+42
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
2021-02-11Merge pull request #1063 from DanielLipowicz/fix/incorrectVinNumberMarak1-8/+30
Fix issue 1062; Add new alpha and alphanumeric functionality
2021-02-09Merge pull request #1020 from josecarlosweb/feature/remove-deprecated-assetMarak1-15/+15
Replacement of deprecated functions on tests.
2020-12-01Implement issue 1062; Add random.aplha functionality to blacklist some ↵Daniel Lipowicz1-8/+30
characters
2020-10-04Check if seed is a number or array before seeding faker.randomLuiz Strobelt1-0/+6
2020-10-04Change deprecated assert.equalCarlos Carvalho1-15/+15
2018-10-20merge with masterTyler1-1/+113
2017-10-15Merge branch 'master' of https://github.com/Marak/faker.js into add-vehicleTyler1-1/+1
2017-10-15add random.alpaha with testsTyler1-0/+20
2017-10-12Merge pull request #360 from landretk/masterMarak1-1/+1
Added gendered first names to en locale
2017-09-09Revert "Update Random to create a per-instance copy of the RNG"Marak1-16/+0
This reverts commit 8a33cf0e7a57f8fe766034706d0230802788d1ff.
2017-09-08Update Random to create a per-instance copy of the RNGChris Chambers1-0/+16
Before this change, it appeared that multiple, independent Faker instances were legal. But, when multiple instances were created, their shared random number generators would overwrite each others' states. After this change, each Random instance (and therefore each Faker instance) has its own copy of the random number generator, ensuring that calls to one Faker instance do not affect the stream of values generated by another.
2017-09-08Merge pull request #366 from joonhocho/masterMarak1-0/+40
[api] Add `faker.random.arrayElements`
2017-06-19Generate a hexaDecimal stringGokulnath Reddy1-0/+14
2017-03-01Fix generation of float numbersIvan Goncharov1-0/+8
Fixes #401
2016-04-08add faker.random.arrayElementsJoon Ho Cho1-0/+40
2016-04-04alphaNumeric takes now count as a argumentKrzysztof Kaczor1-0/+12
2016-03-30Added gendered names to en localeKeegan Landreth1-1/+1
2016-03-19[fix] [tests] Update lodash APIMarak1-2/+2
* .contains() -> .includes()
2016-02-14[api] [minor] Move semver to System resource #304Marak1-1/+1
2016-02-14Added faker.random.semver.Justin McConnell1-0/+12
Conflicts: lib/random.js
2015-07-15Implemented faker.seed method for randomization seedingBrandon Dail1-1/+7
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-3/+3
Set default max random number to 99999. Added default arguments to some methods.
2015-06-11resolves #176 Add random boolean generatorAlan Shaw1-0/+7
2015-06-10Adding test for negative minimum and max = 0Phil Greenberg1-0/+5
2015-06-10Fixing bug in random.number when max = 0Phil Greenberg1-1/+17
Also added tests for random.array_element
2015-04-11Fix random number unit test specEvan Sharp1-1/+1
Updated the "returns a random number given a maximum value as Object" to include the max value in the check (changed `<` to `<=`)
2014-12-22Added unit test for uuid generatorJames Drew1-0/+8
2014-11-28added tests and corrected the number functionMichał Kawalec1-1/+34
2014-09-11[api] [refactor] Random.number is now powered by node-mersenne instead of ↵Marak1-7/+1
Math.random() #48
2014-09-11[api] [refactor] Replaced Math.Random calls with Random.number. Random ↵Marak1-9/+20
ranges are now inclusive of max instead of exclusive. #88 #48
2014-09-08Fix: faker.Lorem.sentence() was ignoring the 'range' parameter.Foster Hersey1-0/+5
Conflicts: lib/lorem.js
2014-07-23Updates to switch changes over to using 2 args to support min/maxAnthony van der Hoorn1-4/+3
2014-07-22Bug fixes and latest version.FotoVerite1-0/+22
2014-06-16random number now accepts a range array [min, max].Ed Shadi1-0/+22