mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
chore: fix typo (#6609)
Signed-off-by: mountdisk <mountdisk@icloud.com.>
This commit is contained in:
parent
3910323d09
commit
b0ed15b452
|
|
@ -108,7 +108,7 @@ function shouldHaveHeaderValues (key, values) {
|
||||||
return function (res) {
|
return function (res) {
|
||||||
var headers = res.headers[key.toLowerCase()]
|
var headers = res.headers[key.toLowerCase()]
|
||||||
assert.ok(headers, 'should have header "' + key + '"')
|
assert.ok(headers, 'should have header "' + key + '"')
|
||||||
assert.strictEqual(headers.length, values.length, 'should have ' + values.length + ' occurances of "' + key + '"')
|
assert.strictEqual(headers.length, values.length, 'should have ' + values.length + ' occurrences of "' + key + '"')
|
||||||
for (var i = 0; i < values.length; i++) {
|
for (var i = 0; i < values.length; i++) {
|
||||||
assert.strictEqual(headers[i], values[i])
|
assert.strictEqual(headers[i], values[i])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user