mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
30 lines
657 B
JavaScript
30 lines
657 B
JavaScript
import JCReverb from "Tone/effect/JCReverb";
|
|
import Basic from "helper/Basic";
|
|
import EffectTests from "helper/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();
|
|
});
|
|
});
|
|
});
|
|
|