git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-79-npm / reload / reload@2.1.0.js

447 bytesRaw
1'use strict';
2
3var http = require('http');
4require('reload/bin/reload');
5
6setTimeout(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