diff options
author | Rich Trott <rtrott@gmail.com> | 2022-02-02 22:35:32 -0800 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2022-02-05 12:58:32 +0000 |
commit | 5d559f4a748fa85f67f50b23916a9ef6cf9260a1 (patch) | |
tree | 1d156014abfe5d6da640ea3fe6ef38a0eb32f83f /test/parallel/test-stream-readable-destroy.js | |
parent | 73a75c2ee63ea65709f63b71ade3b81a02b519fc (diff) | |
download | node-new-5d559f4a748fa85f67f50b23916a9ef6cf9260a1.tar.gz |
test: enable no-empty ESLint rule
PR-URL: https://github.com/nodejs/node/pull/41831
Refs: https://eslint.org/docs/rules/no-empty
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test/parallel/test-stream-readable-destroy.js')
-rw-r--r-- | test/parallel/test-stream-readable-destroy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-stream-readable-destroy.js b/test/parallel/test-stream-readable-destroy.js index 51f4521686..fc82f44bc9 100644 --- a/test/parallel/test-stream-readable-destroy.js +++ b/test/parallel/test-stream-readable-destroy.js @@ -316,8 +316,8 @@ const assert = require('assert'); assert.strictEqual(e.name, 'AbortError'); })); assert.rejects((async () => { - /* eslint-disable-next-line no-unused-vars */ - for await (const chunk of read) {} + // eslint-disable-next-line no-unused-vars, no-empty + for await (const chunk of read) { } })(), /AbortError/); setTimeout(() => controller.abort(), 0); } |