Skip to content

Instantly share code, notes, and snippets.

@nodekid
Created August 16, 2014 14:44
Show Gist options
  • Save nodekid/7ec4a06bab9c5c7c0340 to your computer and use it in GitHub Desktop.
Save nodekid/7ec4a06bab9c5c7c0340 to your computer and use it in GitHub Desktop.
require('must')
supertest = require('supertest')
server = require('../src/server')
api = supertest(server)
describe('GET /', function() {
it('must respond with json', function(done) {
api
.get('/')
.set('Accept', 'application/json')
.expect('Content-Type', /json/)
.expect(200, done)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment