We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4433f1 commit 116258fCopy full SHA for 116258f
test/http.spec.js
@@ -12,6 +12,7 @@ const { isBrowser, isWebWorker } = require('../src/env')
12
const { Buffer } = require('buffer')
13
const uint8ArrayFromString = require('uint8arrays/from-string')
14
const uint8ArrayEquals = require('uint8arrays/equals')
15
+const uint8ArrayConcat = require('uint8arrays/concat')
16
17
describe('http', function () {
18
it('makes a GET request', async function () {
@@ -165,7 +166,9 @@ describe('http', function () {
165
166
upload += 1
167
}
168
})
- await all(request.iterator())
169
+
170
+ const out = uint8ArrayConcat(await all(request.iterator()))
171
+ expect(uint8ArrayEquals(out, body))
172
173
expect(upload).to.be.greaterThan(0)
174
0 commit comments