Tone.js/test/helper/OutputAudio.ts

9 lines
238 B
TypeScript
Raw Normal View History

2019-06-19 14:15:15 +00:00
import { expect } from "chai";
import { Offline } from "./Offline";
export function OutputAudio(callback): Promise<void> {
2019-06-19 14:15:15 +00:00
return Offline(callback, 0.1).then((buffer) => {
2019-07-17 16:54:33 +00:00
expect(buffer.isSilent(), "no audio").to.equal(false);
2019-06-19 14:15:15 +00:00
});
}