mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix: pasting
This commit is contained in:
parent
6bbac046a7
commit
c189d5e98b
3 changed files with 46 additions and 45 deletions
|
|
@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue