aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-12-26 12:35:36 +0100
committerGitHub <[email protected]>2022-12-26 11:35:36 +0000
commit5f9f3ebd0450c4d381185e7de7396133bb432ed7 (patch)
tree3bfb16d90baae8ce206ae658367e34c0cab2fe31
parent2f613cff444eebae35e49fde0e8ba301c48f7a3e (diff)
downloadfaker-5f9f3ebd0450c4d381185e7de7396133bb432ed7.tar.xz
faker-5f9f3ebd0450c4d381185e7de7396133bb432ed7.zip
test(helpers): fake should not trim whitespace (#1680)
-rw-r--r--test/helpers.spec.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/helpers.spec.ts b/test/helpers.spec.ts
index 2f591fc2..80c79e2f 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()', () => {