Skip to content

Commit

Permalink
#210 Autodetect DSF files
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed May 11, 2019
1 parent 5a9c50f commit 9c4916a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -69,7 +69,7 @@
},
"dependencies": {
"debug": "^4.1.0",
"file-type": "^10.5.0",
"file-type": "^11.0.0",
"media-typer": "0.3.0",
"strtok3": "^2.3.0",
"token-types": "^1.0.1"
Expand Down
8 changes: 6 additions & 2 deletions test/test-mime.ts
Expand Up @@ -167,14 +167,18 @@ describe("MIME & extension mapping", () => {
return testFileType(path.join('wavpack', "MusicBrainz - Beth Hart - Sinner's Prayer.wv"), "WavPack");
});

it('should recognize SV7', () => {
it('should recognize SV7', () => {
return testFileType(path.join('mpc', 'apev2.sv7.mpc'), 'Musepack, SV7');
});

it('should recognize SV8', () => {
it('should recognize SV8', () => {
return testFileType(path.join('mpc', 'bach-goldberg-variatians-05.sv8.mpc'), 'Musepack, SV8');
});

it('should recognize DSF', () => {
return testFileType(path.join('dsf', '2L-110_stereo-5644k-1b_04_0.1-sec.dsf'), 'DSF');
});

});

});
7 changes: 4 additions & 3 deletions yarn.lock
Expand Up @@ -1119,9 +1119,10 @@ file-entry-cache@^2.0.0:
flat-cache "^1.2.1"
object-assign "^4.0.1"

file-type@^10.5.0:
version "10.5.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-10.5.0.tgz#895d686cb677f73aba2ff36ea0fc8a232ae7b890"
file-type@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-11.0.0.tgz#576ca9ec099925b0c4df7e75d3be52696b62fb52"
integrity sha512-ixd0mHkDO8KJ1S+ANTM+cZoZgL+TB0txLMm9KjTndfOjFYuRmrUcOtmSEm+e9s7wrynZOvvRD/8LwMQ6a24Irg==

fill-range@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 9c4916a

Please sign in to comment.