summaryrefslogtreecommitdiff
path: root/test/async-hooks/test-disable-in-init.js
diff options
context:
space:
mode:
authorgarygsc <garygsc@gmail.com>2019-10-26 13:17:23 -0600
committerGireesh Punathil <gpunathi@in.ibm.com>2019-12-02 20:03:17 +0530
commitb27e2408af6683d34852221ae70b937b0f95943f (patch)
treeadc4c7a9f20aa89877b350b59bbd4e04f0674985 /test/async-hooks/test-disable-in-init.js
parentcf3a05ae5f8c78dd837b0135f467683477ccc5bc (diff)
downloadandroid-node-v8-b27e2408af6683d34852221ae70b937b0f95943f.tar.gz
android-node-v8-b27e2408af6683d34852221ae70b937b0f95943f.tar.bz2
android-node-v8-b27e2408af6683d34852221ae70b937b0f95943f.zip
test: use arrow functions in async-hooks tests
Convert all anonymous callback functions in `test/async-hooks/*.js` to use arrow functions. `writing-tests.md` states to use arrow functions when appropriate. PR-URL: https://github.com/nodejs/node/pull/30137 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/async-hooks/test-disable-in-init.js')
-rw-r--r--test/async-hooks/test-disable-in-init.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/async-hooks/test-disable-in-init.js b/test/async-hooks/test-disable-in-init.js
index b7ab31e6d9..17537c62f3 100644
--- a/test/async-hooks/test-disable-in-init.js
+++ b/test/async-hooks/test-disable-in-init.js
@@ -7,7 +7,7 @@ const fs = require('fs');
let nestedCall = false;
async_hooks.createHook({
- init: common.mustCall(function() {
+ init: common.mustCall(() => {
nestedHook.disable();
if (!nestedCall) {
nestedCall = true;