mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Merge pull request #1309 from vvakame/fix-maxBuffer-bug
Fixed a bug, there is a test should fail if the original
This commit is contained in:
@@ -59,7 +59,7 @@ var NodeExec = (function () {
|
||||
result.exitCode = null;
|
||||
var cmdLine = filename + ' ' + cmdLineArgs.join(' ');
|
||||
|
||||
var process = nodeExec(cmdLine, function (error, stdout, stderr) {
|
||||
var process = nodeExec(cmdLine, { maxBuffer: 1 * 1024 * 1024 }, function (error, stdout, stderr) {
|
||||
result.stdout = stdout;
|
||||
result.stderr = stderr;
|
||||
result.exitCode = error ? error.code : 0;
|
||||
@@ -691,7 +691,7 @@ var DefinitelyTyped;
|
||||
}
|
||||
Object.defineProperty(TestResult.prototype, "success", {
|
||||
get: function () {
|
||||
return this.exitCode !== 1;
|
||||
return this.exitCode === 0;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
|
||||
@@ -139,7 +139,7 @@ module DefinitelyTyped.TestManager {
|
||||
exitCode:number;
|
||||
|
||||
public get success():boolean {
|
||||
return this.exitCode !== 1;
|
||||
return this.exitCode === 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -57,8 +57,8 @@ class NodeExec implements IExec {
|
||||
var result = new ExecResult();
|
||||
result.exitCode = null;
|
||||
var cmdLine = filename + ' ' + cmdLineArgs.join(' ');
|
||||
|
||||
var process = nodeExec(cmdLine, function (error, stdout, stderr) {
|
||||
|
||||
var process = nodeExec(cmdLine, {maxBuffer: 1 * 1024 * 1024}, function (error, stdout, stderr) {
|
||||
result.stdout = stdout;
|
||||
result.stderr = stderr;
|
||||
result.exitCode = error ? error.code : 0;
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
""
|
||||
|
||||
|
||||
2
threejs/three-tests.ts.tscparams
Normal file
2
threejs/three-tests.ts.tscparams
Normal file
@@ -0,0 +1,2 @@
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user