()
| 50 | } |
| 51 | |
| 52 | function validateReadFileAbortLogicDuring() { |
| 53 | const controller = new AbortController(); |
| 54 | const signal = controller.signal; |
| 55 | process.nextTick(() => controller.abort()); |
| 56 | assert.rejects(readFile(fn, { signal }), { |
| 57 | name: 'AbortError' |
| 58 | }).then(common.mustCall()); |
| 59 | } |
| 60 | |
| 61 | async function validateWrongSignalParam() { |
| 62 | // Verify that if something different than Abortcontroller.signal |
no test coverage detected