diff options
| author | ST-DDT <[email protected]> | 2022-03-24 09:09:17 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-24 09:09:17 +0100 |
| commit | 301a6d2024816bf40f1091ccffe6bb81cb7ba7b0 (patch) | |
| tree | b7a411559aa1dfa28297566603a47bba95e90b56 /test | |
| parent | 9ce1551ab7c9cafc97e3d051f0632591e34eb3ce (diff) | |
| download | faker-301a6d2024816bf40f1091ccffe6bb81cb7ba7b0.tar.xz faker-301a6d2024816bf40f1091ccffe6bb81cb7ba7b0.zip | |
fix: fake is unable to return empty strings (#347)
Diffstat (limited to 'test')
| -rw-r--r-- | test/fake.spec.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fake.spec.ts b/test/fake.spec.ts index d1e18ac4..a78940ea 100644 --- a/test/fake.spec.ts +++ b/test/fake.spec.ts @@ -46,5 +46,9 @@ describe('fake', () => { Error('Invalid method: address.foo') ); }); + + it('should be able to return empty strings', () => { + expect(faker.fake('{{helpers.repeatString}}')).toBe(''); + }); }); }); |
