You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
330 B

'use strict'
const { test } = require('tap')
const vary = require('../vary')
test('Should not set reply header if none is passed', t => {
t.plan(1)
const replyMock = {
getHeader (name) {
return []
},
header (name, value) {
t.fail('Should not be here')
}
}
vary(replyMock, [])
t.pass()
})