import {removeAttachmentLinksFromMarkdown} from './EditorUpload.js';
test('removeAttachmentLinksFromMarkdown', () => {
expect(removeAttachmentLinksFromMarkdown('a foo b', 'foo')).toBe('a foo b');
expect(removeAttachmentLinksFromMarkdown('a [x](attachments/foo) b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a ![x](attachments/foo) b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a [x](/attachments/foo) b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a ![x](/attachments/foo) b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a b', 'foo')).toBe('a b');
expect(removeAttachmentLinksFromMarkdown('a b', 'foo')).toBe('a b');
});