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
Update test/parallel/test-aborted-util.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
debadree25 and aduh95 authored Feb 5, 2023
commit 7ff30c8bbdbe368bb360fef00c4ca08f30d72dc2
9 changes: 5 additions & 4 deletions test/parallel/test-aborted-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ const { getEventListeners } = require('events');

{
// Fails with error if not provided abort signal
const sig = new EventTarget();
assert.rejects(aborted(sig, {}), {
name: 'TypeError',
});
Promise.all([{}, null, undefined, Symbol(), [], 1, 0, 1n, true, false, 'a', () => {}].map((sig) =>
assert.rejects(aborted(sig, {}), {
name: 'TypeError',
Comment thread
debadree25 marked this conversation as resolved.
Outdated
})
).then(common.mustCall());
}

{
Expand Down