Skip to content

Commit

Permalink
Fix providing skip unit test callback method
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jan 21, 2025
1 parent 402f49b commit 98073f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-file-flac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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"');
});
});
Expand Down

0 comments on commit 98073f9

Please sign in to comment.