mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
10 lines
No EOL
282 B
JavaScript
10 lines
No EOL
282 B
JavaScript
define(["helper/Offline"], function (Offline) {
|
|
return 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);
|
|
});
|
|
};
|
|
}); |