itube-specs 0.0.743 → 0.0.746
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,12 +31,6 @@ describe('cleanModelInfo', () => {
|
|
|
31
31
|
expect(result.nationalityIsoCode).toBe('US');
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
it('без long_description → берёт bio', () => {
|
|
35
|
-
const raw = { long_description: '', bio: 'bio text', video_thumb_urls: { webp: {} } };
|
|
36
|
-
const result = cleanModelInfo(raw as any);
|
|
37
|
-
expect(result.fullDescription).toBe('bio text');
|
|
38
|
-
});
|
|
39
|
-
|
|
40
34
|
it('пустые данные → дефолты', () => {
|
|
41
35
|
const result = cleanModelInfo({} as any);
|
|
42
36
|
expect(result.title).toBe('');
|
|
@@ -9,7 +9,7 @@ export const cleanModelInfo = (card: IRawModelInfo): ICardInfo => ({
|
|
|
9
9
|
videosCount: card.videos_count || 0,
|
|
10
10
|
img: card.video_thumb_urls?.webp?.[ThumbSize.Small] || '',
|
|
11
11
|
parameters: card.parameters || '',
|
|
12
|
-
fullDescription: card.
|
|
12
|
+
fullDescription: card.long_description || '',
|
|
13
13
|
relatedNames: card.relatedNames || [],
|
|
14
14
|
akaNames: card.aka_names?.join(', ') || '',
|
|
15
15
|
birthSummary: card.birth_summary || '',
|