🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { formatImageRef, stripImageRefs } from './imageRef';
describe('stripImageRefs', () => {
it('removes every reference written by formatImageRef with its trailing space', () => {
const text = `${formatImageRef(1)} ${formatImageRef(2)} compare these logos`;
expect(stripImageRefs(text)).toBe('compare these logos');
});
it('keeps text that only looks similar', () => {
expect(stripImageRefs('see [Image] and Image #3')).toBe('see [Image] and Image #3');
});
});