mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-03 21:35:13 +00:00
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import { describe, it, expect } from 'vitest'
|
|
|
|
import { markEstimated } from '../src/format.js'
|
|
|
|
describe('markEstimated', () => {
|
|
it('prefixes the estimated marker when the figure is estimated', () => {
|
|
expect(markEstimated('$1.23', true)).toBe('~$1.23')
|
|
})
|
|
|
|
it('leaves a measured figure untouched', () => {
|
|
expect(markEstimated('$1.23', false)).toBe('$1.23')
|
|
})
|
|
})
|