mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-01 14:38:45 +00:00
test: await probe
This commit is contained in:
1 parent
ed309d9870
commit
bd0422a537
1 file changed
+1
-1
@@ -4,7 +4,7 @@ import { readFile } from 'fs/promises';
|
|||||||
|
|
||||||
test('should probe mp3 buffer', async (t) => {
|
test('should probe mp3 buffer', async (t) => {
|
||||||
const chunk = await readFile('./__test__/data/head.mp3');
|
const chunk = await readFile('./__test__/data/head.mp3');
|
||||||
const probeResult = probe(chunk);
|
const probeResult = await probe(chunk);
|
||||||
|
|
||||||
t.deepEqual(probeResult, {
|
t.deepEqual(probeResult, {
|
||||||
channels: 2,
|
channels: 2,
|
||||||
|
|||||||
Reference in new issue
Block a user