Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Oct 16, 2023
1 parent b00df39 commit 59a46d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/__tests__/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ describe.concurrent('roundIt method', () => {

it('should handle zero value', () => {
const result = roundIt(0)
expect(result).toBe("<abbr title='0'>NaN</abbr>")
expect(result).toBe("<abbr title='0'>0</abbr>")
})

it('should handle NaN value', () => {
const result = roundIt(NaN)
expect(result).toBe("<abbr title='NaN'>NaN</abbr>")
expect(result).toBe("<abbr title='NaN'>0</abbr>")
})

it('should add label to title if provided', () => {
Expand Down

0 comments on commit 59a46d3

Please sign in to comment.