mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
30 lines
716 B
JavaScript
30 lines
716 B
JavaScript
import PingPongDelay from "Tone/effect/PingPongDelay";
|
|
import Basic from "helper/Basic";
|
|
import EffectTests from "helper/EffectTests";
|
|
|
|
describe("PingPongDelay", function(){
|
|
|
|
Basic(PingPongDelay);
|
|
EffectTests(PingPongDelay, 0.01);
|
|
|
|
context("API", function(){
|
|
|
|
it("can pass in options in the constructor", function(){
|
|
var pingPong = new PingPongDelay({
|
|
"delayTime" : 0.2,
|
|
});
|
|
expect(pingPong.delayTime.value).to.be.closeTo(0.2, 0.01);
|
|
pingPong.dispose();
|
|
});
|
|
|
|
it("can get/set the options", function(){
|
|
var pingPong = new PingPongDelay();
|
|
pingPong.set({
|
|
"delayTime" : 0.21,
|
|
});
|
|
expect(pingPong.get().delayTime).to.be.closeTo(0.21, 0.01);
|
|
pingPong.dispose();
|
|
});
|
|
});
|
|
});
|
|
|