From 4f64379fd8728d91a260521a31ef116d7abcda15 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 23 Dec 2022 20:48:42 +0100 Subject: [PATCH] test: fake should not trim whitespace --- test/helpers.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/helpers.spec.ts b/test/helpers.spec.ts index 37a1bd02693..917939d6596 100644 --- a/test/helpers.spec.ts +++ b/test/helpers.spec.ts @@ -727,6 +727,10 @@ describe('helpers', () => { faker.helpers.fake('{{name.firstName}}') ); }); + + it('should not trim whitespace', () => { + expect(faker.helpers.fake(' --- ')).toBe(' --- '); + }); }); describe('rangeToNumber()', () => {