mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
feat: 一大堆优化
This commit is contained in:
18
packages/pokemon/src/__tests__/renderer.test.ts
Normal file
18
packages/pokemon/src/__tests__/renderer.test.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { describe, expect, test } from 'bun:test'
|
||||
import { renderAnimatedSprite } from '../sprites/renderer'
|
||||
|
||||
describe('renderAnimatedSprite', () => {
|
||||
test('flip preserves sprite width alignment across rows', () => {
|
||||
const lines = [
|
||||
' AB',
|
||||
' C',
|
||||
]
|
||||
|
||||
const flipped = renderAnimatedSprite(lines, 0, 'flip')
|
||||
|
||||
expect(flipped).toEqual([
|
||||
'\x1b[0mBA \x1b[0m',
|
||||
'\x1b[0m C \x1b[0m',
|
||||
])
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user