Skip to content

Commit

Permalink
[#1256] Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Jan 24, 2024
1 parent bbf3c65 commit 3fe17e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui/src/app/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ describe('utils', () => {
})

it('human count should round the numbers properly', () => {
expect(humanCount(999)).toBe('999')
expect(humanCount(999n)).toBe('999')

expect(humanCount(1900)).toBe('1.9k')
expect(humanCount(1900n)).toBe('1.9k')

Expand Down

0 comments on commit 3fe17e0

Please sign in to comment.