Home / Function/ shouldContainInBody() — express Function Reference

shouldContainInBody() — express Function Reference

Architecture documentation for the shouldContainInBody() function in express.json.js from the express codebase.

Entity Profile

Dependency Diagram

graph TD
  b3514e68_0fb0_f807_8764_ce0e12c55a7d["shouldContainInBody()"]
  eca68b5c_f321_92f1_9725_72b595b85224["express.json.js"]
  b3514e68_0fb0_f807_8764_ce0e12c55a7d -->|defined in| eca68b5c_f321_92f1_9725_72b595b85224
  style b3514e68_0fb0_f807_8764_ce0e12c55a7d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

test/express.json.js lines 750–755

function shouldContainInBody (str) {
  return function (res) {
    assert.ok(res.text.indexOf(str) !== -1,
      'expected \'' + res.text + '\' to contain \'' + str + '\'')
  }
}

Domain

Subdomains

Frequently Asked Questions

What does shouldContainInBody() do?
shouldContainInBody() is a function in the express codebase, defined in test/express.json.js.
Where is shouldContainInBody() defined?
shouldContainInBody() is defined in test/express.json.js at line 750.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free