mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 12:49:23 +00:00

Replace function expressions with function declarations in preparation for a lint rule requiring function declarations. PR-URL: https://github.com/nodejs/node/pull/12711 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
'use strict';
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
const test_async = require(`./build/${common.buildType}/test_async`);
|
|
|
|
test_async.Test(5, common.mustCall(function(err, val) {
|
|
assert.strictEqual(err, null);
|
|
assert.strictEqual(val, 10);
|
|
process.nextTick(common.mustCall());
|
|
}));
|
|
|
|
test_async.TestCancel(common.mustCall());
|