Tone.js/test/effect/Chebyshev.js

31 lines
613 B
JavaScript
Raw Normal View History

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