2015-08-26 14:29:35 +00:00
|
|
|
define(["Tone/effect/Chebyshev", "helper/Basic", "helper/EffectTests"], function (Chebyshev, Basic, EffectTests) {
|
|
|
|
|
|
|
|
describe("Chebyshev", function(){
|
|
|
|
|
|
|
|
Basic(Chebyshev);
|
|
|
|
EffectTests(Chebyshev, 51);
|
|
|
|
|
|
|
|
context("API", function(){
|
|
|
|
|
2017-12-30 16:26:29 +00:00
|
|
|
it("can pass in options in the constructor", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
var cheby = new Chebyshev({
|
|
|
|
"order" : 2,
|
|
|
|
});
|
|
|
|
expect(cheby.order).to.equal(2);
|
|
|
|
cheby.dispose();
|
|
|
|
});
|
|
|
|
|
2017-12-30 16:26:29 +00:00
|
|
|
it("can get/set the options", function(){
|
2015-08-26 14:29:35 +00:00
|
|
|
var cheby = new Chebyshev();
|
|
|
|
cheby.set({
|
|
|
|
"order" : 40,
|
|
|
|
});
|
|
|
|
expect(cheby.get().order).to.equal(40);
|
|
|
|
cheby.dispose();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2017-12-30 16:26:29 +00:00
|
|
|
});
|