mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
28 lines
531 B
JavaScript
28 lines
531 B
JavaScript
import Test from "helper/Test";
|
|
import Zero from "Tone/signal/Zero";
|
|
import BasicTest from "helper/Basic";
|
|
import Signal from "Tone/signal/Signal";
|
|
import ConstantOutput from "helper/ConstantOutput";
|
|
|
|
describe("Zero", function(){
|
|
|
|
BasicTest(Zero);
|
|
|
|
context("Zero", function(){
|
|
|
|
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);
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|