MCPcopy Create free account
hub / github.com/expressjs/body-parser / shouldContainInBody

Function shouldContainInBody

test/json.js:743–748  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

741}
742
743function shouldContainInBody (str) {
744 return function (res) {
745 assert.ok(res.text.indexOf(str) !== -1,
746 'expected \'' + res.text + '\' to contain \'' + str + '\'')
747 }
748}
749
750function tryRequire (name) {
751 try {

Callers 1

json.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected