Skip to content

Commit

Permalink
test: fix typos in addon_build/index.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node-addon-api#838
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: NickNaso <nicoladelgobbo@gmail.com>
  • Loading branch information
John French committed Nov 23, 2020
1 parent 8f76d87 commit 9093caf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/addon_build/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const { promisify } = require('util');
const exec = promisify(require('child_process').exec);
const exec = promisify(require('child_process').exec);
const { copy, remove } = require('fs-extra');
const path = require('path');
const assert = require('assert')
Expand All @@ -26,8 +26,8 @@ async function test(addon) {
const { stderr, stdout } = await exec('npm install', {
cwd: path.join(ADDONS_FOLDER, addon)
})
console.log(` >Runting test for: '${addon}'`);
// Disabled the checks on stderr and stdout because of this issuue on npm:
console.log(` >Running test for: '${addon}'`);
// Disabled the checks on stderr and stdout because of this issue on npm:
// Stop using process.umask(): https://github.com/npm/cli/issues/1103
// We should enable the following checks again after the resolution of
// the reported issue.
Expand All @@ -41,7 +41,6 @@ async function test(addon) {
assert.strictEqual(binding.noexcept.echo(103), 103);
}


module.exports = (async function() {
await beforeAll(addons);
for (const addon of addons) {
Expand Down

0 comments on commit 9093caf

Please sign in to comment.