mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 05:13:50 +02:00
Fix failing tests, add missing license headers
This commit is contained in:
@@ -52,7 +52,7 @@ test('can convert a .flac to .wav', async () => {
|
||||
assert(outputTrack);
|
||||
|
||||
const duration = await outputTrack.computeDuration();
|
||||
expect(duration).toBe(19.71428571428571);
|
||||
expect(duration).toBe(19.714285714285715);
|
||||
const tags = await outputAsInput.getMetadataTags();
|
||||
expect(tags.raw).toEqual({
|
||||
IART: 'Samples Files',
|
||||
|
||||
@@ -41,6 +41,7 @@ test('Default track disposition', async () => {
|
||||
original: false,
|
||||
hearingImpaired: false,
|
||||
visuallyImpaired: false,
|
||||
primary: false,
|
||||
commentary: false,
|
||||
});
|
||||
});
|
||||
@@ -87,6 +88,7 @@ test('Customized track disposition', async () => {
|
||||
original: true,
|
||||
hearingImpaired: true,
|
||||
visuallyImpaired: true,
|
||||
primary: false,
|
||||
commentary: true,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ test('can loop over all samples', async () => {
|
||||
|
||||
const track = await input.getPrimaryAudioTrack();
|
||||
assert(track);
|
||||
expect(await track.computeDuration()).toEqual(19.71428571428571);
|
||||
expect(await track.computeDuration()).toEqual(19.714285714285715);
|
||||
expect(await track.getDecoderConfig()).toEqual({
|
||||
codec: 'flac',
|
||||
numberOfChannels: 2,
|
||||
|
||||
Reference in New Issue
Block a user