Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expressjs/body-parser
/ shouldContainInBody
Function
shouldContainInBody
test/json.js:995–1000 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
993
}
994
995
function
shouldContainInBody (str) {
996
return
function
(res) {
997
assert.ok(res.text.indexOf(str) !== -1,
998
'expected \'
' + res.text + '
\
' to contain \'
' + str + '
\
''
)
999
}
1000
}
Callers
1
json.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected