mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-31 22:18:44 +00:00
25 lines
507 B
TypeScript
25 lines
507 B
TypeScript
|
import { BasicTests } from "test/helper/Basic";
|
||
|
import { connectTo } from "test/helper/Connect";
|
||
|
import { ConstantOutput } from "test/helper/ConstantOutput";
|
||
|
import { Zero } from "./Zero";
|
||
|
|
||
|
describe("Zero", () => {
|
||
|
|
||
|
BasicTests(Zero);
|
||
|
|
||
|
context("Zero", () => {
|
||
|
|
||
|
it("handles output connections", () => {
|
||
|
const abs = new Zero();
|
||
|
abs.connect(connectTo());
|
||
|
abs.dispose();
|
||
|
});
|
||
|
|
||
|
it("always outputs 0", () => {
|
||
|
return ConstantOutput(() => {
|
||
|
new Zero().toMaster();
|
||
|
}, 0, 0);
|
||
|
});
|
||
|
});
|
||
|
});
|