Skip to content

Commit

Permalink
refactor(test): format rand.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Apr 24, 2024
1 parent e02b6b6 commit 4eaf07f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/utils/rand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test("Random string", () => {
test("Random string with only uppercase letters", () => {
const str = utils.randString(10, { upper: true, lower: false });
expect(str).toMatch(/^[A-Z]{10}$/);
})
});

test("Random string with all letters", () => {
const str = utils.randString(10, { upper: true });
Expand All @@ -41,4 +41,4 @@ test("Random string with custom characters", () => {
test("Random string with only custom characters", () => {
const str = utils.randString(10, { custom: "!@#$", letter: false });
expect(str).toMatch(/^[!@#$]{10}$/);
})
});

0 comments on commit 4eaf07f

Please sign in to comment.