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

Function expectKeyCount

test/urlencoded.js:818–822  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

816}
817
818function expectKeyCount (count) {
819 return function (res) {
820 assert.strictEqual(Object.keys(JSON.parse(res.text)).length, count)
821 }
822}
823
824function tryRequire (name) {
825 try {

Callers 1

urlencoded.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected