Skip to content

Commit

Permalink
test: improve coverage for timer promises schedular
Browse files Browse the repository at this point in the history
PR-URL: #53370
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
RedYetiDev authored and marco-ippolito committed Nov 16, 2024
1 parent 9359133 commit 048c898
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-timers-promises-scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const { setTimeout } = require('timers');
const {
strictEqual,
rejects,
throws,
} = require('assert');

async function testYield() {
Expand Down Expand Up @@ -48,3 +49,7 @@ async function testCancelableWait2() {
}

testCancelableWait2().then(common.mustCall());

throws(() => new scheduler.constructor(), {
code: 'ERR_ILLEGAL_CONSTRUCTOR',
});

0 comments on commit 048c898

Please sign in to comment.