mirror of
https://github.com/S2-/securerandomstring.git
synced 2025-08-03 02:40:04 +02:00
change api. i don't know what i was thinking.
This commit is contained in:
8
tests.js
8
tests.js
@@ -36,18 +36,18 @@ securerandomstring(function(sr) {
|
||||
);
|
||||
});
|
||||
|
||||
securerandomstring(function(sr) {
|
||||
securerandomstring({length: 1}, function(sr) {
|
||||
test('generate a random string 1 char long',
|
||||
sr.length,
|
||||
1
|
||||
);
|
||||
}, {length: 1});
|
||||
});
|
||||
|
||||
securerandomstring(function(sr) {
|
||||
securerandomstring({length: 256}, function(sr) {
|
||||
test('generate a random string 256 chars long',
|
||||
sr.length,
|
||||
256
|
||||
);
|
||||
}, {length: 256});
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user