mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
|
define(["Tone/effect/Effect", "Tone/effect/StereoFeedbackEffect", "helper/Basic"], function (Effect, StereoFeedbackEffect, Basic) {
|
||
|
|
||
|
describe("StereoFeedbackEffect", function(){
|
||
|
|
||
|
Basic(StereoFeedbackEffect);
|
||
|
|
||
|
context("Feedback Effect", function(){
|
||
|
|
||
|
it ("extends Effect", function(){
|
||
|
var stereoFeedback = new StereoFeedbackEffect();
|
||
|
expect(stereoFeedback).to.be.instanceOf(Effect);
|
||
|
stereoFeedback.dispose();
|
||
|
});
|
||
|
|
||
|
it ("has a feedback signal", function(){
|
||
|
var stereoFeedback = new StereoFeedbackEffect();
|
||
|
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 StereoFeedbackEffect();
|
||
|
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();
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
});
|