aboutsummaryrefslogtreecommitdiff
path: root/test/date.unit.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21chore(test): migrate to vitest (#235)Shinigami1-219/+0
2022-01-18feat!: support tree-shaking (#152)Shinigami1-1/+1
2022-01-13chore: format tests (#67)Shinigami1-61/+65
2021-03-22Linting fixes for `./test`Marak1-138/+138
2019-04-18Get x dates between two datespbborel1-0/+13
2018-10-09fix(date): Allow for `refDate` in `soon()`, `recent()`Droogans1-0/+26
Closes #686
2017-03-07Add test for faker.date.soonAlexey Torkhov1-0/+10
2015-07-18Adding generators: faker.date.month(), faker.date.weekday()Michael Radionov1-0/+85
2014-11-12Have past, future and recent return random datesDaniel Perez Alvarez1-1/+9
Functions `past` and `future` only returned dates EXACTLY N YEARS before or after the reference date. Function `recent` only returned dates EXACTLY N DAYS before the reference date. For example, `faker.date.past(1)` would return either *Nov 12, 2014*, or *Nov 12, 2013*, but nothing in-between. Also, now you can call those functions without parameter, and N will take the default value of `1`.
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak1-7/+7
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-10[fix] Do not serialize Dates from Date.random APIs. Dates are now returned ↵Marak1-7/+7
as Date objects. #93
2014-07-22Bug fixes and latest version.FotoVerite1-1/+9
2014-07-22Merge pull request #86 from northernv/fix-future-dateMatthew Bergman1-0/+8
Ensure Date.future returns a date in the future.
2014-06-16added hours in date.recent. Currently the code returns date in past minutes. ↵Ed Shadi1-1/+1
random days could return 0 so modified the test to reflect <= current date.
2014-05-21Ensure Date.future returns a date in the future.Shane A. Stillwell1-0/+8
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite1-7/+7
lowercase.
2013-11-05Add Date functionality: past, future, recent, betweencyanos31-0/+65
Includes build