Skip to content

Commit 88e2f2d

Browse files
committed
✅ Update tests
1 parent 2641990 commit 88e2f2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/generate.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ describe('generate', () => {
4242

4343
it('should generate a password with all options enabled', () => {
4444
const password = generate({
45-
length: 12,
45+
length: 200,
4646
numbers: true,
4747
symbols: true,
4848
uppercase: true,
4949
lowercase: true,
5050
excludeSimilarCharacters: true,
5151
});
52-
expect(password.length).toBe(12);
52+
expect(password.length).toBe(200);
5353
expect(password).toMatch(/[0-9]+/);
5454
expect(password).toMatch(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/);
5555
expect(password).toMatch(/[A-Z]+/);
5656
expect(password).toMatch(/[a-z]+/);
57-
expect(password).not.toMatch(/[il1Lo0O]/);
57+
expect(password).not.toMatch(/[ilLI|`oO0]/g);
5858
});
5959
});

0 commit comments

Comments
 (0)