mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
adjusting tests with new unity level
This commit is contained in:
parent
9528238873
commit
4fc7646a40
1 changed files with 2 additions and 1 deletions
|
@ -60,8 +60,9 @@ function (Meter, Basic, Offline, Test, Signal, PassAudio, Tone, Merge, Oscillato
|
|||
it("can get the level of the incoming signal", function(done){
|
||||
var meter = new Meter();
|
||||
var osc = new Oscillator().connect(meter).start();
|
||||
osc.volume.value = -6;
|
||||
setTimeout(function(){
|
||||
expect(meter.value).to.be.closeTo(0.85, 0.1);
|
||||
expect(meter.value).to.be.closeTo(1, 0.1);
|
||||
meter.dispose();
|
||||
osc.dispose();
|
||||
done();
|
||||
|
|
Loading…
Reference in a new issue