Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-79-npm / reload / reload@2.1.0.js
447 bytesRaw
1 | ; |
2 | |
3 | var http = require('http'); |
4 | require('reload/bin/reload'); |
5 | |
6 | setTimeout(function () { |
7 | http.get('http://127.0.0.1:8080/', function (res) { |
8 | var chunks = ''; |
9 | res.on('data', function (chunk) { |
10 | chunks += chunk.toString(); |
11 | }).on('end', function () { |
12 | if (chunks === 'Can\'t find index.html' || |
13 | chunks === 'File Not Found') { |
14 | console.log('ok'); |
15 | } |
16 | process.exit(); |
17 | }); |
18 | }); |
19 | }, 500); |
20 |
Built with git-ssb-web