Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / 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