mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
committed by
Douglas Christopher Wilson
parent
6eda52a3dc
commit
8a97346eaf
@@ -1,4 +1,5 @@
|
||||
|
||||
var assert = require('assert')
|
||||
var express = require('../');
|
||||
var request = require('supertest');
|
||||
|
||||
@@ -33,6 +34,7 @@ describe('middleware', function(){
|
||||
.set('Content-Type', 'application/json')
|
||||
.send('{"foo":"bar"}')
|
||||
.expect('Content-Type', 'application/json')
|
||||
.expect(function () { assert.deepEqual(calls, ['one', 'two']) })
|
||||
.expect(200, '{"foo":"bar"}', done)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user