mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +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);
|
|
});
|
|
};
|
|
}); |