Skip to content

Commit

Permalink
fix: broken test (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed Apr 3, 2024
1 parent 6df3c73 commit dde070b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/fetch/iterators.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test('Implements " Iterator" properly', async (t) => {
const IteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))
const iteratorProto = Object.getPrototypeOf(gen)

assert.ok(gen.constructor === Object)
assert.ok(gen.constructor === IteratorPrototype.constructor)
assert.ok(gen.prototype === undefined)
// eslint-disable-next-line no-proto
assert.strictEqual(gen.__proto__[Symbol.toStringTag], 'Headers Iterator')
Expand All @@ -38,7 +38,7 @@ test('Implements " Iterator" properly', async (t) => {
const IteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))
const iteratorProto = Object.getPrototypeOf(gen)

assert.ok(gen.constructor === Object)
assert.ok(gen.constructor === IteratorPrototype.constructor)
assert.ok(gen.prototype === undefined)
// eslint-disable-next-line no-proto
assert.strictEqual(gen.__proto__[Symbol.toStringTag], 'FormData Iterator')
Expand Down

0 comments on commit dde070b

Please sign in to comment.