Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: change that checking only the code property
  • Loading branch information
fossamagna committed Apr 22, 2022
commit 293c6fc39f25629dd4f82e034372df89296e9f7d
5 changes: 0 additions & 5 deletions test/parallel/test-whatwg-readablebytestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ class Source {
reader.releaseLock();
assert.rejects(reader.read(new Uint8Array(10)), {
code: 'ERR_INVALID_STATE',
message: 'Invalid state: The reader is not attached to a stream',
});
assert.rejects(reader.cancel(), {
code: 'ERR_INVALID_STATE',
message: 'Invalid state: The reader is not attached to a stream',
});
}

Expand All @@ -232,11 +230,9 @@ class Source {
controller.close();
assert.throws(() => controller.enqueue(new Uint8Array(10)), {
code: 'ERR_INVALID_STATE',
message: 'Invalid state: ReadableStream is already closed',
});
assert.throws(() => controller.close(), {
code: 'ERR_INVALID_STATE',
message: 'Invalid state: ReadableStream is already closed',
});
}

Expand All @@ -250,7 +246,6 @@ class Source {
controller.close();
assert.throws(() => controller.enqueue(new Uint8Array(10)), {
code: 'ERR_INVALID_STATE',
message: 'Invalid state: Controller is already closed',
});
}

Expand Down