import { expect,test } from 'bun:test'; import { inboundText,resolveParent } from './inbox.js';
test('hashtag resolves and strips',()=>{const m:any={id:'m7k3q'};const s:any={getByTgMessageId:()=>null,getMessage:(id:string)=>id==='m7k3q'?m:null};expect(resolveParent(s,1,null,' #M7K3Q hello')).toBe(m);expect(inboundText(' #M7K3Q hello',true)).toBe('hello')});
