mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-28 12:33:12 +00:00
wider tolerance for testing
This commit is contained in:
parent
1cf6910796
commit
501bf3c516
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ function (Envelope, Basic, Offline, Test) {
|
|||
if (time < env.attack){
|
||||
expect(sample).to.be.within(0, 1);
|
||||
} else if (time < env.attack + env.decay){
|
||||
expect(sample).to.be.within(env.sustain, 1);
|
||||
expect(sample).to.be.within(env.sustain - 0.001, 1);
|
||||
} else if (time < duration){
|
||||
expect(sample).to.be.closeTo(env.sustain, 0.1);
|
||||
} else if (time < duration + env.release){
|
||||
|
|
Loading…
Reference in a new issue