From 9ee879dc0447adcd2f5e82b66ca141c4e2ef10f9 Mon Sep 17 00:00:00 2001 From: xnacly Date: Wed, 3 Feb 2021 19:39:37 +0100 Subject: added passwordStrength estimator --- src/test/password_test.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/test/password_test.ts (limited to 'src/test/password_test.ts') diff --git a/src/test/password_test.ts b/src/test/password_test.ts new file mode 100644 index 00000000..59d36621 --- /dev/null +++ b/src/test/password_test.ts @@ -0,0 +1,12 @@ +import { check } from "./../util/passwordStrength"; + +console.log(check("123456789012345")); +// -> 0.25 +console.log(check("ABCDEFGHIJKLMOPQ")); +// -> 0.25 +console.log(check("ABC123___...123")); +// -> +console.log(check("")); +// -> +// console.log(check("")); +// // -> -- cgit 1.5.1