Skip to content

Instantly share code, notes, and snippets.

@franrios
Created April 9, 2016 14:24
Show Gist options
  • Save franrios/6e0afe4c006b377a3a7a9af3817aacca to your computer and use it in GitHub Desktop.
Save franrios/6e0afe4c006b377a3a7a9af3817aacca to your computer and use it in GitHub Desktop.
var request = require('request')
var expect = require('chai').expect
describe('Server response', function () {
it('should return 200', function (done) {
request.get('http://localhost:8080/', function (err, res, body) {
if (err) throw err
expect(res.statusCode).to.equal(200)
done()
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment