1
0
mirror of https://github.com/S2-/securerandomstring.git synced 2025-08-01 18:00:06 +02:00

add 10 chars test

This commit is contained in:
s2
2024-09-26 13:17:57 +02:00
parent f7e565bcc7
commit 51274ca17b

View File

@@ -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