17 lines
464 B
TypeScript
17 lines
464 B
TypeScript
|
|
import { describe, it, expect } from 'vitest';
|
||
|
|
import { severityToAccent } from './severity-utils';
|
||
|
|
|
||
|
|
describe('severityToAccent', () => {
|
||
|
|
it('maps CRITICAL → error', () => {
|
||
|
|
expect(severityToAccent('CRITICAL')).toBe('error');
|
||
|
|
});
|
||
|
|
|
||
|
|
it('maps WARNING → warning', () => {
|
||
|
|
expect(severityToAccent('WARNING')).toBe('warning');
|
||
|
|
});
|
||
|
|
|
||
|
|
it('maps INFO → undefined (no row tint)', () => {
|
||
|
|
expect(severityToAccent('INFO')).toBeUndefined();
|
||
|
|
});
|
||
|
|
});
|