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.
16 lines
295 B
16 lines
295 B
3 years ago
|
const { test } = require('tap')
|
||
|
|
||
|
const Response = require('../lib/response')
|
||
|
|
||
|
test('multiple calls to res.destroy should not be called', (t) => {
|
||
|
t.plan(1)
|
||
|
|
||
|
const mockReq = {}
|
||
|
const res = new Response(mockReq, (err, response) => {
|
||
|
t.error(err)
|
||
|
})
|
||
|
|
||
|
res.destroy()
|
||
|
res.destroy()
|
||
|
})
|