feat: added field "title" and switched to it to free up caption for its normal use

This commit is contained in:
2026-02-15 09:09:48 +01:00
parent 4f71ac25bc
commit b5795867a8
20 changed files with 886 additions and 42 deletions

View File

@@ -1016,7 +1016,7 @@ describe('ImportExecutionEngine', () => {
);
});
it('should set caption from WXR title', async () => {
it('should set title from WXR title', async () => {
const wxrMedia = createMockWxrMedia({ title: 'Beautiful Sunset' });
const report = createMockAnalysisReport({
media: {
@@ -1035,7 +1035,7 @@ describe('ImportExecutionEngine', () => {
expect(mockMediaEngine.importMedia).toHaveBeenCalledWith(
expect.any(String),
expect.objectContaining({
caption: 'Beautiful Sunset',
title: 'Beautiful Sunset',
})
);
});