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

Function expectKeyCount

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

Source from the content-addressed store, hash-verified

988}
989
990function expectKeyCount (count) {
991 return function (res) {
992 assert.strictEqual(Object.keys(JSON.parse(res.text)).length, count)
993 }
994}

Callers 1

urlencoded.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected