mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Fix test
This commit is contained in:
@@ -147,6 +147,7 @@ test('Read and write metadata, QuickTime', async () => {
|
|||||||
...songMetadata,
|
...songMetadata,
|
||||||
raw: {
|
raw: {
|
||||||
'©sic': 'ko mode',
|
'©sic': 'ko mode',
|
||||||
|
'cust': new Uint8Array([1, 2, 3, 4]),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -179,11 +180,8 @@ test('Read and write metadata, QuickTime', async () => {
|
|||||||
|
|
||||||
expect(readTags.raw!['©nam']).toBe(songMetadata.title);
|
expect(readTags.raw!['©nam']).toBe(songMetadata.title);
|
||||||
// We don't know what the data type is, so the demuxer just returns Uint8Array
|
// We don't know what the data type is, so the demuxer just returns Uint8Array
|
||||||
expect(readTags.raw!['©sic']).toEqual(new Uint8Array([
|
expect(readTags.raw!['©sic']).toBe('ko mode'); // Parsed as string because it begins with ©
|
||||||
0, 7, // String length 7
|
expect(readTags.raw!['cust']).toEqual(new Uint8Array([1, 2, 3, 4]));
|
||||||
85, 196, // Language code for 'und'
|
|
||||||
107, 111, 32, 109, 111, 100, 101, // 'ko mode'
|
|
||||||
]));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Read MOV metadata tags, ilst with keys', async () => {
|
test('Read MOV metadata tags, ilst with keys', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user