fix: pasting

This commit is contained in:
Brooklyn Nicholson 2026-04-13 22:39:03 -05:00
parent 6bbac046a7
commit c189d5e98b
3 changed files with 46 additions and 45 deletions

View file

@ -78,24 +78,10 @@ describe('edgePreview', () => {
describe('pasteTokenLabel', () => {
it('builds readable long-paste labels with counts', () => {
expect(
pasteTokenLabel({
charCount: 1000,
id: 7,
lineCount: 250,
text: 'Vampire Bondage ropes slipped from her neck, still stained with blood',
tokenCount: 250
})
).toContain('[[paste:7 ')
expect(
pasteTokenLabel({
charCount: 1000,
id: 7,
lineCount: 250,
text: 'Vampire Bondage ropes slipped from her neck, still stained with blood',
tokenCount: 250
})
).toContain('[250 lines · 250 tok · 1K chars]')
const label = pasteTokenLabel('Vampire Bondage ropes slipped from her neck, still stained with blood', 250)
expect(label.startsWith('[[ ')).toBe(true)
expect(label).toContain('[250 lines]')
expect(label.endsWith(' ]]')).toBe(true)
})
})