🤯 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 { getLocalImagePreview, rememberLocalImagePreview } from './localImagePreview';
describe('localImagePreview', () => {
it('returns the local copy remembered for an uploaded file', () => {
rememberLocalImagePreview('file-1', 'blob:a');
expect(getLocalImagePreview('file-1')).toBe('blob:a');
expect(getLocalImagePreview('file-2')).toBeUndefined();
});
});