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