Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FernhillFable/cluster
/ passError
Function
passError
test/middleware.js:18–20 ·
view source on GitHub ↗
(_request, next)
Source
from the content-addressed store, hash-verified
16
17
var
expectedError =
new
Error(
'Bad dog!'
);
18
function
passError(_request, next) {
19
return
next(expectedError);
20
}
21
function
getErrorTest(done) {
22
return
function
(err) {
23
expect(err).to.eql(expectedError);
Callers
nothing calls this directly
Calls
1
next
Function · 0.85
Tested by
no test coverage detected