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
690 B
JavaScript
30 lines
690 B
JavaScript
import StereoWidener from "Tone/effect/StereoWidener";
|
|
import Basic from "helper/Basic";
|
|
import EffectTests from "helper/EffectTests";
|
|
|
|
describe("StereoWidener", function(){
|
|
|
|
Basic(StereoWidener);
|
|
EffectTests(StereoWidener, 0);
|
|
|
|
context("API", function(){
|
|
|
|
it("can pass in options in the constructor", function(){
|
|
var widener = new StereoWidener({
|
|
"width" : 0.2,
|
|
});
|
|
expect(widener.width.value).to.be.closeTo(0.2, 0.001);
|
|
widener.dispose();
|
|
});
|
|
|
|
it("can get/set the options", function(){
|
|
var widener = new StereoWidener();
|
|
widener.set({
|
|
"width" : 0.4,
|
|
});
|
|
expect(widener.width.value).to.be.closeTo(0.4, 0.001);
|
|
widener.dispose();
|
|
});
|
|
});
|
|
});
|
|
|