Welcome to mirror list, hosted at ThFree Co, Russian Federation.

http.spec.js « acceptance « test « mocha-3.1.0 « lib « tests - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 43b8588508805d7976ed421c606f3ef9de0ba88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var http = require('http');

var server = http.createServer(function(req, res){
  res.end('Hello World\n');
})

server.listen(8888);

describe('http', function(){
  it('should provide an example', function(done){
    http.get({ path: '/', port: 8888 }, function(res){
      expect(res).to.have.property('statusCode', 200);
      done();
    })
  })
})