markdown.js
This file
Path
test/acceptance/markdown.js
21 lines · 476 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678910111213141516171819202122
var app = require('../../examples/markdown')var request = require('supertest')
describe('markdown', function(){ describe('GET /', function(){ it('should respond with html', function(done){ request(app) .get('/') .expect(/<h1[^>]*>Markdown Example<\/h1>/,done) }) })
describe('GET /fail',function(){ it('should respond with an error', function(done){ request(app) .get('/fail') .expect(500,done) }) })})