| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 51ea5b6 commit 905c48f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const { test } = require('node:test'); | ||
| 4 | + | ||
| 5 | + // Regression test for https://github.com/nodejs/node/issues/51997 | ||
| 6 | + test('after hook should be called with no subtests', (t) => { | ||
| 7 | + const timer = setTimeout(common.mustNotCall(), 2 ** 30); | ||
| 8 | + | ||
| 9 | + t.after(common.mustCall(() => { | ||
| 10 | + clearTimeout(timer); | ||
| 11 | + })); | ||
| 12 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments