Skip to content

Commit

Permalink
jslint test/simple/test-regress-GH-1899.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMadsen committed Dec 11, 2011
1 parent f47276a commit 987cbe3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/simple/test-regress-GH-1899.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,20 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

var path = require('path');
var assert = require('assert')
var assert = require('assert');
var spawn = require('child_process').spawn;
var common = require('../common');

var child = spawn(process.argv[0], [path.join(common.fixturesDir, 'GH-1899-output.js')]);
var child = spawn(process.argv[0], [
path.join(common.fixturesDir, 'GH-1899-output.js')
]);
var output = '';

child.stdout.on('data', function (data) {
child.stdout.on('data', function(data) {
output += data;
});

child.on('exit', function (code, signal) {
child.on('exit', function(code, signal) {
assert.equal(code, 0);
assert.equal(output, 'hello, world!\n');
});
Expand Down

0 comments on commit 987cbe3

Please sign in to comment.