Files
private_image/frontend/src/utils/share/buildDeletePath.spec.ts
T
nobswebdev 95ed6e5f58 Add share URL builders and embed format helpers for uploaded images.
Centralize clearnet/onion paths, delete links, and BBCode/Markdown/HTML output with unit tests and escape-html for safe HTML snippets.
2026-10-25 22:00:01 +01:00

9 lines
326 B
TypeScript

import { describe, expect, it } from 'vitest';
import { buildDeletePath } from '@/utils/share/buildDeletePath';
describe('buildDeletePath', () => {
it('builds delete route with encoded token', () => {
expect(buildDeletePath('upload-id', 'abc+def/token')).toBe('/d/upload-id?token=abc%2Bdef%2Ftoken');
});
});