coffee-express
Version:
A Template for NodeJs Application using Express, CoffeeScript, Jade, and Stylus.
22 lines (19 loc) • 471 B
text/coffeescript
request = require 'supertest'
app = require process.cwd() + '/.app'
describe 'General', ->
describe 'Main page', ->
it "should be here", (done) ->
request(app)
.get("/")
.send( {} )
.expect(200, {},
done()
)
describe "404 Routing", ->
it "should not be here", (done) ->
request(app)
.get('/nonexistent/action')
.send( {} )
.expect(404, {},
done()
)