Skip to content

Commit 116258f

Browse files
committed
chore: address review comment
1 parent d4433f1 commit 116258f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/http.spec.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const { isBrowser, isWebWorker } = require('../src/env')
1212
const { Buffer } = require('buffer')
1313
const uint8ArrayFromString = require('uint8arrays/from-string')
1414
const uint8ArrayEquals = require('uint8arrays/equals')
15+
const uint8ArrayConcat = require('uint8arrays/concat')
1516

1617
describe('http', function () {
1718
it('makes a GET request', async function () {
@@ -165,7 +166,9 @@ describe('http', function () {
165166
upload += 1
166167
}
167168
})
168-
await all(request.iterator())
169+
170+
const out = uint8ArrayConcat(await all(request.iterator()))
171+
expect(uint8ArrayEquals(out, body))
169172

170173
expect(upload).to.be.greaterThan(0)
171174
})

0 commit comments

Comments
 (0)