| 1234567891011121314151617181920212223242526272829 | import WaveSurfer from '../src/wavesurfer.js';/** @test {util} */describe('util:', function() {    /** @test {getId} */    it('getId returns a random string', function() {        expect(WaveSurfer.util.getId()).toStartWith('wavesurfer_');    });    /** @test {min} */    it('min returns the smallest number in the provided array', function() {        expect(WaveSurfer.util.min([0, 1, 1.1, 100, -1])).toEqual(-1);    });    /** @test {min} */    it('min returns +Infinity for an empty array', function() {        expect(WaveSurfer.util.min([])).toEqual(+Infinity);    });    /** @test {max} */    it('max returns the largest number in the provided array', function() {        expect(WaveSurfer.util.max([0, 1, 1.1, 100, -1])).toEqual(100);    });    /** @test {max} */    it('max returns -Infinity for an empty array', function() {        expect(WaveSurfer.util.max([])).toEqual(-Infinity);    });});
 |