markdown.js
This file
Path
test/acceptance/markdown.js
21 lines · 476 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6bc7574 point at it.
docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 1–21why, one step back12var app = require('../../examples/markdown')3var request = require('supertest')45describe('markdown', function(){6 describe('GET /', function(){7 it('should respond with html', function(done){8 request(app)9 .get('/')10 .expect(/<h1[^>]*>Markdown Example<\/h1>/,done)11 })12 })1314 describe('GET /fail',function(){15 it('should respond with an error', function(done){16 request(app)17 .get('/fail')18 .expect(500,done)19 })20 })21})