mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
This reverts commit d9b59def72.
Breaks downloadable source tarball builds as we remove some files prior
to creating a tarball but those files are included in the comprehensive
list of dependencies listed in .deps.
Ref: https://github.com/nodejs/node/pull/17407
PR-URL: https://github.com/nodejs/node/pull/18287
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
16 lines
483 B
JavaScript
16 lines
483 B
JavaScript
'use strict';
|
|
|
|
const common = require('../../common');
|
|
const assert = require('assert');
|
|
|
|
// addon is referenced through the eval expression in testFile
|
|
// eslint-disable-next-line no-unused-vars
|
|
const addon = require(`./build/${common.buildType}/test_general`);
|
|
|
|
const testCase = '(41.92 + 0.08);';
|
|
const expected = 42;
|
|
const actual = addon.testNapiRun(testCase);
|
|
|
|
assert.strictEqual(actual, expected);
|
|
assert.throws(() => addon.testNapiRun({ abc: 'def' }), /string was expected/);
|