diff options
Diffstat (limited to 'test/modules/date.spec.ts')
| -rw-r--r-- | test/modules/date.spec.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/modules/date.spec.ts b/test/modules/date.spec.ts index 19a2d0a7..f93135ba 100644 --- a/test/modules/date.spec.ts +++ b/test/modules/date.spec.ts @@ -612,22 +612,6 @@ describe('date', () => { expect(age).toBeLessThanOrEqual(22); }); - it.each(['min', 'max', 'mode'] as const)( - "should throw an error when '%s' is not provided", - (key) => { - const options = { min: 18, max: 80, mode: 'age' } as const; - - // eslint-disable-next-line @typescript-eslint/no-dynamic-delete - delete options[key]; - - expect(() => faker.date.birthdate(options)).toThrow( - new FakerError( - `The 'min', 'max', and 'mode' options must be set together.` - ) - ); - } - ); - it('should throw an error when the min > max year', () => { const min = 2000; const max = 1990; |
