Skip to content

Commit

Permalink
remove validating error message in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
deokjinkim committed Dec 1, 2022
1 parent 6860e13 commit cc631b2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/parallel/test-eventtarget.js
Expand Up @@ -691,31 +691,26 @@ let asyncTest = Promise.resolve();

throws(() => et.addEventListener(), {
code: 'ERR_MISSING_ARGS',
name: 'TypeError',
message: 'The "type" and "listener" arguments must be specified'
name: 'TypeError'
});

throws(() => et.addEventListener('foo'), {
code: 'ERR_MISSING_ARGS',
name: 'TypeError',
message: 'The "type" and "listener" arguments must be specified'
name: 'TypeError'
});

throws(() => et.removeEventListener(), {
code: 'ERR_MISSING_ARGS',
name: 'TypeError',
message: 'The "type" and "listener" arguments must be specified'
name: 'TypeError'
});

throws(() => et.removeEventListener('foo'), {
code: 'ERR_MISSING_ARGS',
name: 'TypeError',
message: 'The "type" and "listener" arguments must be specified'
name: 'TypeError'
});

throws(() => et.dispatchEvent(), {
code: 'ERR_MISSING_ARGS',
name: 'TypeError',
message: 'The "event" argument must be specified'
name: 'TypeError'
});
}

0 comments on commit cc631b2

Please sign in to comment.