MCPcopy Index your code
hub / github.com/share/sharedb / expectFidoOnly

Function expectFidoOnly

test/middleware.js:80–89  ·  view source on GitHub ↗
(backend, done)

Source from the content-addressed store, hash-verified

78 }
79
80 function expectFidoOnly(backend, done) {
81 var doneAfter = util.callAfter(1, done);
82 backend.use('readSnapshots', function(request, next) {
83 expect(request.snapshots).to.have.length(1);
84 expectFido(request);
85 doneAfter();
86 next();
87 });
88 return doneAfter;
89 }
90
91 function expectFidoAndSpot(backend, done) {
92 var doneAfter = util.callAfter(1, done);

Callers 1

middleware.jsFile · 0.85

Calls 2

expectFidoFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…