mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
Split the tests so that it's easier to isolate and debug issues, and we can run the test cases in parallel to speed up. Also add more comments about what they are testing. PR-URL: https://github.com/nodejs/node/pull/61571 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
17 lines
349 B
JavaScript
17 lines
349 B
JavaScript
'use strict';
|
|
|
|
// Tests node::LoadEnvironment() with main_script_source_utf8 works.
|
|
|
|
const common = require('../common');
|
|
const { spawnSyncAndAssert } = require('../common/child_process');
|
|
|
|
const embedtest = common.resolveBuiltBinary('embedtest');
|
|
|
|
spawnSyncAndAssert(
|
|
embedtest,
|
|
['console.log(42)'],
|
|
{
|
|
trim: true,
|
|
stdout: '42',
|
|
});
|