Debian Codegraph @

test.js

raw symbols SCIP
1 var spawn = require('child_process').spawn
2 , server = spawn('node', ['make/tests.js'])
3 , phantom = spawn('./vendor/phantomjs', ['./phantom.js'])
4
5
6 phantom.stdout.on('data', function (data) {
7 console.log('stdout: ' + data);
8 })
9
10 phantom.on('exit', function (code, signal) {
11 var outcome = code == 0 ? 'passed' : 'failed'
12 console.log('Reqwest tests have %s', outcome, code)
13 server.kill('SIGHUP')
14 process.exit(code)
15 })