mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
28 lines
No EOL
671 B
JavaScript
28 lines
No EOL
671 B
JavaScript
define(["Tone/effect/JCReverb", "helper/Basic", "helper/EffectTests"], function (JCReverb, Basic, EffectTests) {
|
|
|
|
describe("JCReverb", function(){
|
|
|
|
Basic(JCReverb);
|
|
EffectTests(JCReverb);
|
|
|
|
context("API", function(){
|
|
|
|
it ("can pass in options in the constructor", function(){
|
|
var reverb = new JCReverb({
|
|
"roomSize" : 0.2,
|
|
});
|
|
expect(reverb.roomSize.value).to.be.closeTo(0.2, 0.01);
|
|
reverb.dispose();
|
|
});
|
|
|
|
it ("can get/set the options", function(){
|
|
var reverb = new JCReverb();
|
|
reverb.set({
|
|
"roomSize" : 0.23,
|
|
});
|
|
expect(reverb.get().roomSize).to.be.closeTo(0.23, 0.01);
|
|
reverb.dispose();
|
|
});
|
|
});
|
|
});
|
|
}); |