aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.unit.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21chore(test): migrate to vitest (#235)Shinigami1-284/+0
2022-01-18feat!: support tree-shaking (#152)Shinigami1-1/+1
2022-01-13chore: format tests (#67)Shinigami1-80/+128
2021-05-28feat: add uniqueArray helper functionHanna Walter1-0/+48
2021-03-22Linting fixes for `./test`Marak1-134/+134
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-3/+3
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
2020-10-04Change deprecated assert.equalCarlos Carvalho1-7/+7
2020-08-23Merge pull request #614 from mastermatt/bufix-shuffle-last-elementMarak1-0/+13
Bugfix random.shuffle last element.
2018-10-27[test] Add `faker.fake` functional tests #386Marak1-0/+33
- Now running all methods through faker.fake - Adds coverage for scope issues #376 - Refactors functional test methods to helper
2018-10-15Bugfix random.shuffle last element.Matt R. Wilson1-0/+13
There was a bug in the implementation of the modern Fisher–Yates algorithm in that `i` was being decremented prematurely in each loop. This caused the last element of the array to never be swapped and therefore remain the last element. Updated doc to denote the provided array is shuffled in place.
2017-09-08Merge pull request #524 from chilicoder/masterMarak1-0/+9
[api] add alphanumeric symbol * to `helpers.replaceSymbols`
2017-08-10add alphanumeric symbol * to helpers.replaceSymbolsIaroslav Popov1-0/+9
2017-02-26replace String.prototype.repeat with proper helperJakub Mandula1-4/+4
2017-02-26Merge branch 'Mark/origin' into creditCardJakub Mandula1-0/+5
2016-08-30Prevented a crash on running helpers.shuffle on an empty arrayBen Douglas1-0/+5
2016-06-13add tests for credit card functions and helpersJakub Mandula1-0/+51
2015-07-09[test] [fix] Remove test for legacy method.Marak1-8/+0
2015-06-04Fix issue Marak/faker.js#214 with shuffle()Sherman Mui1-0/+10
Add a dubious spec.
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak1-9/+9
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-13[api] Added basic financial generators Closes #32Marak1-0/+13
Merge https://github.com/josefsalyer/Faker.js
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite1-9/+9
lowercase.
2013-07-28added tests and cleaned up at 100% in istanbul (not constantinople)Josef Salyer1-0/+17
2013-03-16js cleanup (jshint)Mikhail Fedosov1-14/+14
2013-03-15fix #42: Email has invalid charactersMikhail Fedosov1-0/+7
2013-01-08adding randomNumber and randomize back to helpers.jsBryan Donovan1-0/+18
2013-01-07allowing all tests to run in browserBryan Donovan1-3/+5
2013-01-07100% test coverage.Bryan Donovan1-0/+35