mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
@@ -2049,14 +2049,17 @@ namespace string_decoder_tests {
|
||||
namespace child_process_tests {
|
||||
{
|
||||
childProcess.exec("echo test");
|
||||
childProcess.exec("echo test", {windowsHide: true});
|
||||
childProcess.spawnSync("echo test");
|
||||
childProcess.spawnSync("echo test", {windowsVerbatimArguments: false});
|
||||
}
|
||||
|
||||
{
|
||||
childProcess.execFile("npm", () => {});
|
||||
childProcess.execFile("npm", { windowsHide: true }, () => {});
|
||||
childProcess.execFile("npm", ["-v"], () => {});
|
||||
childProcess.execFile("npm", ["-v"], { encoding: 'utf-8' }, (stdout, stderr) => { assert(stdout instanceof String); });
|
||||
childProcess.execFile("npm", ["-v"], { encoding: 'buffer' }, (stdout, stderr) => { assert(stdout instanceof Buffer); });
|
||||
childProcess.execFile("npm", ["-v"], { windowsHide: true, encoding: 'utf-8' }, (stdout, stderr) => { assert(stdout instanceof String); });
|
||||
childProcess.execFile("npm", ["-v"], { windowsHide: true, encoding: 'buffer' }, (stdout, stderr) => { assert(stdout instanceof Buffer); });
|
||||
childProcess.execFile("npm", { encoding: 'utf-8' }, (stdout, stderr) => { assert(stdout instanceof String); });
|
||||
childProcess.execFile("npm", { encoding: 'buffer' }, (stdout, stderr) => { assert(stdout instanceof Buffer); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user