Created
April 9, 2016 14:24
-
-
Save franrios/6e0afe4c006b377a3a7a9af3817aacca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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