node/test/addons/async-hello-world/test.js

11 lines
308 B
JavaScript

'use strict';
const common = require('../../common');
var assert = require('assert');
const binding = require(`./build/${common.buildType}/binding`);
binding(5, common.mustCall(function(err, val) {
assert.equal(null, err);
assert.equal(10, val);
process.nextTick(common.mustCall(function() {}));
}));