fix: last diffs in transformation
This commit is contained in:
@@ -805,8 +805,8 @@ describe('ImportAnalysisEngine', () => {
|
||||
|
||||
const report = await engine.analyzeWxr(wxrData, '/test.xml');
|
||||
|
||||
// Should use title as alt text and include title in markdown
|
||||
expect(report.posts.items[0].markdownPreview).toContain('');
|
||||
// Should use title as alt text (but not include title in markdown - cleaner output)
|
||||
expect(report.posts.items[0].markdownPreview).toContain('');
|
||||
});
|
||||
|
||||
it('should extract filename as alt text when both alt and title are empty', async () => {
|
||||
|
||||
@@ -440,13 +440,14 @@ describe('ImportExecutionEngine E2E Tests', () => {
|
||||
|
||||
// Linked image with empty alt should become a plain image with filename-derived alt
|
||||
// The link target is the full-size image, so use that for the image src
|
||||
expect(content).toContain('');
|
||||
// Note: extension is stripped from alt text for cleaner output
|
||||
expect(content).toContain('');
|
||||
|
||||
// Linked image with no alt attribute (link and image different)
|
||||
expect(content).toContain('');
|
||||
expect(content).toContain('');
|
||||
|
||||
// Linked image where link and src are the same
|
||||
expect(content).toContain('');
|
||||
expect(content).toContain('');
|
||||
|
||||
// Image with proper alt inside link should preserve the alt text
|
||||
expect(content).toContain('');
|
||||
|
||||
Reference in New Issue
Block a user