We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f6bdb commit 8824508Copy full SHA for 8824508
test/smoke.test.js
@@ -39,6 +39,15 @@ describe('on-http-end', () => {
39
res.end('world')
40
})
41
42
+ it('should accumulate content and encoding', function (done) {
43
+ onFinished(res, (payload) => {
44
+ expect(payload.encoding).to.equal('utf-8')
45
+ done()
46
+ })
47
+
48
+ res.end('Hello', 'utf-8')
49
50
51
it('should accumulate non-string content', function (done) {
52
onFinished(res, (payload) => {
53
expect(payload.data).to.equal(true)
0 commit comments