feat: add inline token count etc and fix venv
This commit is contained in:
@@ -48,14 +48,14 @@ describe('fmtK', () => {
|
||||
expect(fmtK(999)).toBe('999')
|
||||
})
|
||||
|
||||
it('formats thousands as K', () => {
|
||||
expect(fmtK(1000)).toBe('1K')
|
||||
expect(fmtK(1500)).toBe('1.5K')
|
||||
it('formats thousands as lowercase k', () => {
|
||||
expect(fmtK(1000)).toBe('1k')
|
||||
expect(fmtK(1500)).toBe('1.5k')
|
||||
})
|
||||
|
||||
it('formats millions and billions', () => {
|
||||
expect(fmtK(1_000_000)).toBe('1M')
|
||||
expect(fmtK(1_000_000_000)).toBe('1B')
|
||||
it('formats millions and billions with lowercase suffixes', () => {
|
||||
expect(fmtK(1_000_000)).toBe('1m')
|
||||
expect(fmtK(1_000_000_000)).toBe('1b')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user