UNPKG
startrail
Version:
latest (0.5.0)
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
Block Cache for js-ipfs
github.com/johnytiago/startrail
johnytiago/startrail
startrail
/
test
/
helpers
/
stub.js
10 lines
(6 loc)
•
176 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
;
const
sinon =
require
(
'sinon'
);
function
stubCallBack
(
err, res
) {
return
sinon.
stub
().
callsFake
(
(
cid, cb
) =>
cb
(err, res)); }
module
.
exports
= stubCallBack;