xref: /third_party/node/test/addons/async-hello-world/test.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/addons/async-hello-world/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../../common');
31cb0ef41Sopenharmony_ciconst assert = require('assert');
41cb0ef41Sopenharmony_ciconst { runCall } = require(`./build/${common.buildType}/binding`);
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_cirunCall(5, common.mustCall((err, val) => {
71cb0ef41Sopenharmony_ci  assert.strictEqual(err, null);
81cb0ef41Sopenharmony_ci  assert.strictEqual(val, 10);
91cb0ef41Sopenharmony_ci  process.nextTick(common.mustCall());
101cb0ef41Sopenharmony_ci}));
11

Indexes created Thu Nov 07 10:32:03 CST 2024