Skip to content

Commit 39536e8

Browse files
Leyla JähnigShinigami92
Leyla Jähnig
authored andcommitted
refactor: rewrite alphaNumeric test to use for loop
1 parent b46a68f commit 39536e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/random.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ describe('random', () => {
184184
});
185185

186186
expect(alphaText).toHaveLength(5);
187-
expect(alphaText).match(/^[0-9]{5}$/);
188187
for (const bannedChar of bannedChars) {
189188
expect(alphaText).not.includes(bannedChar);
190189
}
@@ -197,7 +196,6 @@ describe('random', () => {
197196
});
198197

199198
expect(alphaText).toHaveLength(5);
200-
expect(alphaText).match(/^[a-z]{5}$/);
201199
for (const bannedChar of bannedChars) {
202200
expect(alphaText).not.includes(bannedChar);
203201
}

0 commit comments

Comments
 (0)