Tone.js/test/helper/ConstantOutput.js
tambien ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00

10 lines
269 B
JavaScript

import Offline from "helper/Offline";
export default function(callback, value, threshold){
if (typeof threshold === "undefined"){
threshold = 0.01;
}
return Offline(callback).then(function(buffer){
expect(buffer.value()).to.be.closeTo(value, threshold);
});
}