mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 20:13:07 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
10 lines
269 B
JavaScript
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);
|
|
});
|
|
}
|
|
|