From e7c7a82fe3ea15a5f19480a859ce00d862537d44 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Fri, 26 Sep 2025 10:06:13 +0200 Subject: [PATCH] Fix test --- test/node/metadata-tags.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/node/metadata-tags.test.ts b/test/node/metadata-tags.test.ts index a742cee..56400a7 100644 --- a/test/node/metadata-tags.test.ts +++ b/test/node/metadata-tags.test.ts @@ -147,6 +147,7 @@ test('Read and write metadata, QuickTime', async () => { ...songMetadata, raw: { '©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); // We don't know what the data type is, so the demuxer just returns Uint8Array - expect(readTags.raw!['©sic']).toEqual(new Uint8Array([ - 0, 7, // String length 7 - 85, 196, // Language code for 'und' - 107, 111, 32, 109, 111, 100, 101, // 'ko mode' - ])); + expect(readTags.raw!['©sic']).toBe('ko mode'); // Parsed as string because it begins with © + expect(readTags.raw!['cust']).toEqual(new Uint8Array([1, 2, 3, 4])); }); test('Read MOV metadata tags, ilst with keys', async () => {