mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
28 lines
626 B
JavaScript
28 lines
626 B
JavaScript
define(["Tone/effect/Chebyshev", "helper/Basic", "helper/EffectTests"], function (Chebyshev, Basic, EffectTests) {
|
|
|
|
describe("Chebyshev", function(){
|
|
|
|
Basic(Chebyshev);
|
|
EffectTests(Chebyshev, 51);
|
|
|
|
context("API", function(){
|
|
|
|
it("can pass in options in the constructor", function(){
|
|
var cheby = new Chebyshev({
|
|
"order" : 2,
|
|
});
|
|
expect(cheby.order).to.equal(2);
|
|
cheby.dispose();
|
|
});
|
|
|
|
it("can get/set the options", function(){
|
|
var cheby = new Chebyshev();
|
|
cheby.set({
|
|
"order" : 40,
|
|
});
|
|
expect(cheby.get().order).to.equal(40);
|
|
cheby.dispose();
|
|
});
|
|
});
|
|
});
|
|
});
|