summaryrefslogtreecommitdiff
path: root/test/addons/async-hello-world/test.js
blob: 72b31f7ab6ec203e5ff8ef29f5dd680fda64b39a (plain)
1
2
3
4
5
6
7
8
9
10
'use strict';
const common = require('../../common');
const assert = require('assert');
const { runCall } = require(`./build/${common.buildType}/binding`);

runCall(5, common.mustCall((err, val) => {
  assert.strictEqual(err, null);
  assert.strictEqual(val, 10);
  process.nextTick(common.mustCall());
}));