Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/test/formatting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('timeAgo', () => {

it('returns just now for future timestamps', () => {
freeze(1000)
expect(timeAgo(2000)).toBe('just now')
expect(timeAgo(2000)).toBe('in 1,000 seconds')
})

it('handles 0 without throwing', () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/utils/formatting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('formatTokenAmount', () => {
})

it('handles numbers larger than MAX_SAFE_INTEGER', () => {
expect(formatTokenAmount('99999999999999999999', 7)).toBe('9999999999999.9999999')
expect(formatTokenAmount('99999999999999999999', 7)).toBe('10,000,000,000,000.0000000')
})

it('formats with 0 decimals', () => {
Expand Down