Tone.js/test/signal/Zero.js

26 lines
531 B
JavaScript
Raw Normal View History

2018-05-18 16:07:20 +00:00
define(["helper/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
2018-05-18 16:07:20 +00:00
describe("Zero", function(){
2016-02-27 16:22:49 +00:00
2018-05-18 16:07:20 +00:00
BasicTest(Zero);
2016-02-27 16:22:49 +00:00
2018-05-18 16:07:20 +00:00
context("Zero", function(){
2016-02-27 16:22:49 +00:00
2018-05-18 16:07:20 +00:00
it("handles output connections", function(){
var abs = new Zero();
abs.connect(Test);
abs.dispose();
});
it("always outputs 0", function(){
return ConstantOutput(function(){
new Zero().toMaster();
}, 0, 0);
});
2016-02-27 16:22:49 +00:00
});
});
});