MCPcopy Create free account
hub / github.com/expressjs/compression / shouldHaveBodyLength

Function shouldHaveBodyLength

test/compression.js:1034–1038  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

1032}
1033
1034function shouldHaveBodyLength (length) {
1035 return function (res) {
1036 assert.strictEqual(res.text.length, length, 'should have body length of ' + length)
1037 }
1038}
1039
1040function shouldNotHaveHeader (header) {
1041 return function (res) {

Callers 1

compression.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected