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 <benjamingr@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
avivkeller authored and targos committed Oct 4, 2024
1 parent 3077f6a commit a679669
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 a679669

Please sign in to comment.