Skip to content

Commit

Permalink
test(number): improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LoTwT committed Nov 18, 2024
1 parent c8aef4c commit db8d639
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/number.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ it('randomNumber', () => {
expect(random).toBeGreaterThanOrEqual(min)
expect(random).toBeLessThanOrEqual(max)
expect(randomNumber(0, 0)).toBe(0)

const randomDefault = randomNumber()
expect(randomDefault).toBeGreaterThanOrEqual(0)
expect(randomDefault).toBeLessThanOrEqual(100)
})

it('times', () => {
Expand Down

0 comments on commit db8d639

Please sign in to comment.