import { describe, expect, it } from 'vitest'; import { DashboardConsistencyDisplay } from './DashboardConsistencyFormatter'; describe('DashboardConsistencyDisplay', () => { describe('happy paths', () => { it('should format consistency correctly', () => { expect(DashboardConsistencyDisplay.format(0)).toBe('0%'); expect(DashboardConsistencyDisplay.format(50)).toBe('50%'); expect(DashboardConsistencyDisplay.format(100)).toBe('100%'); }); }); describe('edge cases', () => { it('should handle decimal consistency', () => { expect(DashboardConsistencyDisplay.format(85.5)).toBe('85.5%'); expect(DashboardConsistencyDisplay.format(99.9)).toBe('99.9%'); }); it('should handle negative consistency', () => { expect(DashboardConsistencyDisplay.format(-10)).toBe('-10%'); }); }); });