git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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