mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
6ef4d9ef11
Add test cases to cover uncovered wrap and wrapper getters. Refs: https://coverage.nodejs.org/coverage-99268b1e996d13a0/lib/internal/modules/cjs/loader.js.html#L153 PR-URL: https://github.com/nodejs/node/pull/27898 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
10 lines
294 B
JavaScript
10 lines
294 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const { execFileSync } = require('child_process');
|
|
|
|
const cjsModuleWrapTest = fixtures.path('cjs-module-wrapper.js');
|
|
const node = process.execPath;
|
|
|
|
execFileSync(node, [cjsModuleWrapTest], { stdio: 'pipe' });
|