Skip to content

Commit

Permalink
tests: assert calls order in middleware basic tests
Browse files Browse the repository at this point in the history
closes #3878
  • Loading branch information
김정환 authored and dougwilson committed Apr 17, 2019
1 parent 6eda52a commit 8a97346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/middleware.basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

var assert = require('assert')
var express = require('../');
var request = require('supertest');

Expand Down Expand Up @@ -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)
})
})
Expand Down

0 comments on commit 8a97346

Please sign in to comment.