mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 20:13:07 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
import Effect from "Tone/effect/Effect";
|
|
import StereoXFeedbackEffect from "Tone/effect/StereoXFeedbackEffect";
|
|
import Basic from "helper/Basic";
|
|
|
|
describe("StereoXFeedbackEffect", function(){
|
|
|
|
Basic(StereoXFeedbackEffect);
|
|
|
|
context("Feedback Effect", function(){
|
|
|
|
it("extends Effect", function(){
|
|
var stereoFeedback = new StereoXFeedbackEffect();
|
|
expect(stereoFeedback).to.be.instanceOf(Effect);
|
|
stereoFeedback.dispose();
|
|
});
|
|
|
|
it("has a feedback signal", function(){
|
|
var stereoFeedback = new StereoXFeedbackEffect();
|
|
expect(stereoFeedback).to.have.property("feedback");
|
|
expect(stereoFeedback.feedback).to.have.property("value");
|
|
stereoFeedback.dispose();
|
|
});
|
|
|
|
it("has a mid and a side send and return", function(){
|
|
var stereoFeedback = new StereoXFeedbackEffect();
|
|
expect(stereoFeedback).to.have.property("effectSendL");
|
|
expect(stereoFeedback).to.have.property("effectSendR");
|
|
expect(stereoFeedback).to.have.property("effectReturnL");
|
|
expect(stereoFeedback).to.have.property("effectReturnR");
|
|
stereoFeedback.dispose();
|
|
});
|
|
});
|
|
});
|
|
|