(more, callback)
| 6 | LH = 'http://localhost:3000'; |
| 7 | |
| 8 | function execSjs(more, callback) { |
| 9 | var command = 'node ./bin/scraperjs ' + LH + '/hacker-news-clone ' + more; |
| 10 | exec(command, function(error, out, err) { |
| 11 | if(err || error) { |
| 12 | return; |
| 13 | } else { |
| 14 | callback(JSON.parse(out)); |
| 15 | } |
| 16 | }); |
| 17 | } |
| 18 | |
| 19 | describe('Command line tool', function() { |
| 20 | describe('--text', function() { |