Created
November 5, 2017 00:00
-
-
Save erik-haartmans/130f341bcc36af4f7183bf6b437c0f1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const chai = require('chai'); | |
chai.should(); | |
const request = require('supertest')('http://api.icndb.com/jokes'); | |
describe('chuck norris test suite', () => { | |
it('random api call should return http 200', () => { | |
const response = request.get('/random'); | |
response.statusCode.should.equal(200, 'response status should equal 200'); | |
console.log(response.body.value.joke); | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment