blob: ff349b050e2f8b0b0915ff8ab05a18545f63220b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env node
/* jshint node: true */
'use strict';
var express = require('express');
var app = express();
app.use(express.static('test/suite'));
var server = app.listen(2900, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Test server listening at http://%s:%s', host, port);
if (process.argv[2]) {
// Allow the test to continue running.
process.stdin.write("Go!\n");
}
});
|