Node.js: Added child_process.spawnSync

This commit is contained in:
Frank Ebersoll
2015-10-07 16:55:39 +02:00
parent 1c7dc75783
commit 49a92ea837
2 changed files with 29 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import * as dgram from "dgram";
import * as querystring from "querystring";
import * as path from "path";
import * as readline from "readline";
import * as childProcess from "child_process";
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
@@ -34,7 +35,7 @@ assert.doesNotThrow(() => {
fs.writeFile("thebible.txt",
"Do unto others as you would have them do unto you.",
assert.ifError);
fs.write(1234, "test");
fs.writeFile("Harry Potter",
@@ -382,3 +383,10 @@ rl.prompt(true);
rl.question("do you like typescript?", function(answer: string) {
rl.close();
});
//////////////////////////////////////////////////////////////////////
/// Child Process tests: https://nodejs.org/api/child_process.html ///
//////////////////////////////////////////////////////////////////////
childProcess.exec("echo test");
childProcess.spawnSync("echo test");