Skip to content

Commit a2590a5

Browse files
committed
Use updated FEMediaAsset type
1 parent abda103 commit a2590a5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

dotcom-rendering/src/frontend/feFront.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export interface FEMediaAsset {
111111
version: number;
112112
platform: string;
113113
mimeType?: string;
114+
assetType: string;
114115
}
115116

116117
/** @see https://github.com/guardian/frontend/blob/0bf69f55a/common/app/model/content/Atom.scala#L158-L169 */

dotcom-rendering/src/model/enhanceCards.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ describe('Enhance Cards', () => {
1010
version: 1,
1111
platform: 'Url',
1212
mimeType: 'application/vnd.apple.mpegurl',
13+
assetType: 'Video',
1314
},
1415
{
1516
id: 'https://guim-example.co.uk/atomID-1.mp4',
1617
version: 1,
1718
platform: 'Url',
1819
mimeType: 'video/mp4',
20+
assetType: 'Video',
1921
},
2022
];
2123
const mediaAtom: FEMediaAtom = {

0 commit comments

Comments
 (0)