Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-79-npm / http-server / http-server.js
300 bytesRaw
1 | ; |
2 | |
3 | var http = require('http'); |
4 | process.argv.push('--silent'); |
5 | require('http-server/bin/http-server'); |
6 | setTimeout(function () { |
7 | http.get('http://127.0.0.1:8080/package.json', function (res) { |
8 | if (res.statusCode) { |
9 | console.log('ok'); |
10 | process.exit(); |
11 | } |
12 | }); |
13 | }, 5000); |
14 |
Built with git-ssb-web