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

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

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();
    });
  });
});