Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Mar 29, 2024
1 parent db10fb4 commit a610972
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ test('isGzip() utility should be able to detect gzip compressed Buffer', async (

test('intoAsyncIterator() utility should handle different data', async (t) => {
t.plan(15)

const buf = Buffer.from('foo')
const str = 'foo'
const arr = [str, str]
const arrayBuffer = new ArrayBuffer(8)
const typedArray = new Int32Array(arrayBuffer)
const asyncIterator = (async function* () {
yield str;
})();
const asyncIterator = (async function * () {
yield str
})()

for await (const buffer of intoAsyncIterator(buf)) {
t.equal(buffer, buf)
Expand Down

0 comments on commit a610972

Please sign in to comment.