From 51274ca17b857f981ed69199c2dac6b113e56c1a Mon Sep 17 00:00:00 2001 From: s2 Date: Thu, 26 Sep 2024 13:17:57 +0200 Subject: [PATCH] add 10 chars test --- tests.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests.js b/tests.js index 5228a28..f7823f0 100644 --- a/tests.js +++ b/tests.js @@ -68,6 +68,7 @@ srs({alphanumeric: true, length: 40}, function(err, sr) {; test('generate a random string 32 chars long (sync)', srs().length, 32); test('generate a random string 1 chars long (sync)', srs({length: 1}).length, 1); test('generate a random string 256 chars long (sync)', srs({length: 256}).length, 256); +test('generate a random string 10 chars long (sync)', srs({length: 10}).length, 10); //in 2000 chars there should be at least one substitution