mirror of
https://github.com/darksaid98/mediaplex.git
synced 2026-12-01 14:38:45 +00:00
0.0.1
This commit is contained in:
1 parent
b48814e7d2
commit
33426fd667
1 file changed
+4
-2
@@ -4,13 +4,15 @@ import { readFile } from 'fs/promises';
|
||||
|
||||
test('should probe mp3 buffer', async (t) => {
|
||||
const chunk = await readFile('./__test__/data/head.mp3');
|
||||
const probeResult = probe(chunk);
|
||||
|
||||
t.deepEqual(probe(chunk), {
|
||||
t.deepEqual(probeResult, {
|
||||
channels: 2,
|
||||
sampleRate: 44100,
|
||||
framesPerBlock: 0,
|
||||
codec: 4099,
|
||||
nFrames: 796032,
|
||||
duration: 18
|
||||
duration: 18,
|
||||
metadata: probeResult.metadata.slice()
|
||||
});
|
||||
})
|
||||
Reference in new issue
Block a user