Skip to content

Commit

Permalink
Added more debugging to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ktaeyln committed Oct 22, 2014
1 parent 6aa6de4 commit 8559e3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "execs",
"author": "NexusTools",
"homepage": "https://www.nexustools.net/projects#execs",
"version": "0.1.3",
"version": "0.1.4",
"licenses": [
{
"type": "Apache License 2.0",
Expand Down
10 changes: 5 additions & 5 deletions test/tests.js
Expand Up @@ -69,11 +69,11 @@ describe('synchronous', function() {
processes.waitFor(0.2);
assert.ok(processes.isFinished(), "Processes did not finish");
var errorsLength = processes.errors().length;
assert.ok(errorsLength == 2, "Expected 2 errors, got " + errorsLength);
assert.ok(helloReg.test(processes.readlog(1)), "Second command did not contain Hello WOrld");
assert.ok(failures == 2, "Expected 2 onError events, got " + failures);
assert.ok(successes == 2, "Expected 2 onSuccess events, got " + successes);
assert.ok(exits == 4, "Expected 4 onExit events, got " + exits);
assert.ok(errorsLength == 2, "Expected 2 errors, got " + errorsLength + "\n" + JSON.stringify(processes.errors()));
assert.ok(helloReg.test(processes.readlog(1)), "Second command did not contain Hello World\n" + JSON.stringify(processes.errors()));
assert.ok(failures == 2, "Expected 2 onError events, got " + failures + "\n" + JSON.stringify(processes.errors()));
assert.ok(successes == 2, "Expected 2 onSuccess events, got " + successes + "\n" + JSON.stringify(processes.errors()));
assert.ok(exits == 4, "Expected 4 onExit events, got " + exits + "\n" + JSON.stringify(processes.errors()));
});
});
describe('asynchronous', function() {
Expand Down

0 comments on commit 8559e3f

Please sign in to comment.