mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
adding additional compressor constructor test
This commit is contained in:
parent
9603a0c81e
commit
77e4111e19
1 changed files with 12 additions and 0 deletions
|
@ -51,6 +51,18 @@ function (Compressor, Basic, PassAudio, PassAudioStereo, Test) {
|
|||
comp.dispose();
|
||||
});
|
||||
|
||||
it("can be get and constructed with an object", function(){
|
||||
var comp = new Compressor({
|
||||
"ratio" : 22,
|
||||
"threshold" : -30,
|
||||
"release" : 0.5,
|
||||
"attack" : 0.03,
|
||||
"knee" : 20
|
||||
});
|
||||
expect(comp.threshold.value).to.have.be.closeTo(-30, 1);
|
||||
comp.dispose();
|
||||
});
|
||||
|
||||
it("can get/set all interfaces", function(){
|
||||
var comp = new Compressor();
|
||||
var values = {
|
||||
|
|
Loading…
Reference in a new issue