mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
17 lines
493 B
TypeScript
17 lines
493 B
TypeScript
import createTestEditorWithSerializer from '../testing/createTestEditorWithSerializer';
|
|
|
|
const testImageUrl = 'data:image/svg+xml;utf8,some-icon-here';
|
|
|
|
describe('imagePlugin', () => {
|
|
test('should preserve image ALT text on save', () => {
|
|
const { toHtml, normalizeHtml } = createTestEditorWithSerializer({
|
|
html: `
|
|
<img src="${testImageUrl}" alt="Test"/>
|
|
`,
|
|
plugins: [],
|
|
});
|
|
|
|
expect(toHtml()).toBe(normalizeHtml(`<p><img src="${testImageUrl}" alt="Test"/></p>`));
|
|
});
|
|
});
|