Tone.js/test/signal/Zero.js

25 lines
508 B
JavaScript
Raw Normal View History

2017-02-20 21:40:41 +00:00
define(["Test", "Tone/signal/Zero", "helper/Basic", "Tone/signal/Signal", "helper/ConstantOutput"],
function (Test, Zero, BasicTest, Signal, ConstantOutput) {
2016-02-27 16:22:49 +00:00
describe("Zero", function(){
BasicTest(Zero);
context("Zero", function(){
it("handles output connections", function(){
var abs = new Zero();
abs.connect(Test);
abs.dispose();
});
2017-02-20 21:40:41 +00:00
it("always outputs 0", function(){
return ConstantOutput(function(){
new Zero().toMaster();
}, 0, 0);
2016-02-27 16:22:49 +00:00
});
});
});
});