From e972df0ad28d0ac7a3a769540be2f54666cb1c52 Mon Sep 17 00:00:00 2001 From: Borewit Date: Tue, 21 Jan 2025 11:55:20 +0100 Subject: [PATCH] Fix providing skip unit test callback method --- test/test-file-flac.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-file-flac.ts b/test/test-file-flac.ts index c254df065..a211baf73 100644 --- a/test/test-file-flac.ts +++ b/test/test-file-flac.ts @@ -60,7 +60,7 @@ describe('Parse FLAC Vorbis comment', () => { Parsers.forEach(parser => { it(parser.description, async function(){ - const {format, common, native} = await parser.initParser(this.skip(), path.join(samplePath, 'flac.flac'), 'audio/flac'); + const {format, common, native} = await parser.initParser(() => this.skip(), path.join(samplePath, 'flac.flac'), 'audio/flac'); checkFormat(format); checkCommon(common); checkNative(mm.orderTags(native.vorbis)); @@ -75,7 +75,7 @@ describe('Parse FLAC Vorbis comment', () => { Parsers.forEach(parser => { it(parser.description, async function(){ - const {format} = await parser.initParser(this.skip(), filePath, 'audio/flac'); + const {format} = await parser.initParser(() => this.skip(), filePath, 'audio/flac'); t.deepEqual(format.tagTypes, ['ID3v2.3', 'vorbis', 'ID3v1'], 'File has 3 tag types: "vorbis", "ID3v2.3" & "ID3v1"'); }); });