From 7cd67463fb16a6d4f35b875ba46ddc087a5c7ed8 Mon Sep 17 00:00:00 2001 From: Yanis Benson Date: Fri, 12 Apr 2019 12:27:10 +0300 Subject: [PATCH] test for ac3 --- index.js | 2 +- test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 56e17f1e..4fd1afc0 100644 --- a/index.js +++ b/index.js @@ -927,7 +927,7 @@ const fileType = input => { }; } - if (check([0x77, 0x0B])) { + if (check([0x0B, 0x77])) { return { ext: 'ac3', mime: 'audio/vnd.dolby.dd-raw' diff --git a/test.js b/test.js index 7f073eda..53df6f11 100644 --- a/test.js +++ b/test.js @@ -105,7 +105,8 @@ const types = [ 'glb', 'pcap', 'dsf', - 'voc' + 'voc', + 'ac3' ]; // Define an entry here only if the fixture has a different