Skip to content

Commit 2f38550

Browse files
naris93jasnell
authored andcommitted
test: modernize test-crypto-domain
PR-URL: #23559 Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 7298f8a commit 2f38550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-domain.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const assert = require('assert');
2828
const crypto = require('crypto');
2929
const domain = require('domain');
3030

31-
function test(fn) {
31+
const test = (fn) => {
3232
const ex = new Error('BAM');
3333
const d = domain.create();
3434
d.on('error', common.mustCall(function(err) {
@@ -38,7 +38,7 @@ function test(fn) {
3838
throw ex;
3939
});
4040
d.run(cb);
41-
}
41+
};
4242

4343
test(function(cb) {
4444
crypto.pbkdf2('password', 'salt', 1, 8, cb);

0 commit comments

Comments
 (0)