We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2641990 commit 88e2f2dCopy full SHA for 88e2f2d
test/generate.spec.ts
@@ -42,18 +42,18 @@ describe('generate', () => {
42
43
it('should generate a password with all options enabled', () => {
44
const password = generate({
45
- length: 12,
+ length: 200,
46
numbers: true,
47
symbols: true,
48
uppercase: true,
49
lowercase: true,
50
excludeSimilarCharacters: true,
51
});
52
- expect(password.length).toBe(12);
+ expect(password.length).toBe(200);
53
expect(password).toMatch(/[0-9]+/);
54
expect(password).toMatch(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/);
55
expect(password).toMatch(/[A-Z]+/);
56
expect(password).toMatch(/[a-z]+/);
57
- expect(password).not.toMatch(/[il1Lo0O]/);
+ expect(password).not.toMatch(/[ilLI|`oO0]/g);
58
59
0 commit comments