Created
August 26, 2013 13:33
-
-
Save seriousManual/6341448 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
describe('sample test request', function () { | |
var response, body; | |
before(function (done) { | |
var options = { | |
url: BASE_URL + 'outputDebugInfo', | |
headers: { | |
'foo': 'bar' | |
} | |
}; | |
request(options, function (err, res, bdy) { | |
expect(err).to.be.null; | |
response = res; | |
body = bdy; | |
done(); | |
}); | |
}); | |
it('should send status code 200', function () { | |
expect(response.statusCode).to.equal(200); | |
}); | |
it('should show default page', function () { | |
expect(body).to.equal('fooPage'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment