mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 07:21:37 +08:00
22 lines
716 B
TypeScript
22 lines
716 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { todoGlyph, todoTone } from './todo.js'
|
|
|
|
describe('todoGlyph', () => {
|
|
it('uses fixed-width ASCII markers so the active row does not render wide or emoji-like', () => {
|
|
expect(todoGlyph('completed')).toBe('[x]')
|
|
expect(todoGlyph('in_progress')).toBe('[>]')
|
|
expect(todoGlyph('pending')).toBe('[ ]')
|
|
expect(todoGlyph('cancelled')).toBe('[-]')
|
|
})
|
|
})
|
|
|
|
describe('todoTone', () => {
|
|
it('keeps todo status rows neutral instead of red/green', () => {
|
|
expect(todoTone('completed')).toBe('dim')
|
|
expect(todoTone('cancelled')).toBe('dim')
|
|
expect(todoTone('pending')).toBe('body')
|
|
expect(todoTone('in_progress')).toBe('active')
|
|
})
|
|
})
|