aboutsummaryrefslogtreecommitdiff
path: root/test/modules/string.spec.ts
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-11-07 23:06:53 +0100
committerGitHub <[email protected]>2023-11-07 23:06:53 +0100
commit6f977f6b0122dc1761152d4eb7922fed63dc87c0 (patch)
tree2101c67a4a6b4ff3cbbcfdcdddf65e3f3695b4dd /test/modules/string.spec.ts
parent6df70bce16500ab74a37f932f2e17a08f297430b (diff)
downloadfaker-6f977f6b0122dc1761152d4eb7922fed63dc87c0.tar.xz
faker-6f977f6b0122dc1761152d4eb7922fed63dc87c0.zip
refactor(string): remove arbitrary limit from sample (#2497)
Diffstat (limited to 'test/modules/string.spec.ts')
-rw-r--r--test/modules/string.spec.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/modules/string.spec.ts b/test/modules/string.spec.ts
index a4f7ecef..e82fa93f 100644
--- a/test/modules/string.spec.ts
+++ b/test/modules/string.spec.ts
@@ -724,12 +724,6 @@ describe('string', () => {
expect(generatedString).toHaveLength(0);
});
- it('should return string with length of 2^20 if bigger length value is passed', () => {
- const overMaxValue = 2 ** 28;
- const generatedString = faker.string.sample(overMaxValue);
- expect(generatedString).toHaveLength(2 ** 20);
- });
-
it('should return string with a specific length', () => {
const length = 1337;
const generatedString = faker.string.sample(length);