Files
attest/__tests__/style.test.ts
T
Meredith Lancaster bdb27c47d0 tests handle esm
Signed-off-by: Meredith Lancaster <malancas@github.com>
2026-02-05 13:09:33 -08:00

16 lines
379 B
TypeScript

import { highlight, mute } from '../src/style.js'
describe('style', () => {
describe('highlight', () => {
it('adds cyan color to the string', () => {
expect(highlight('foo')).toBe('\x1B[36mfoo\x1B[39m')
})
})
describe('mute', () => {
it('adds gray color to the string', () => {
expect(mute('foo')).toBe('\x1B[38;5;244mfoo\x1B[39m')
})
})
})