Skip to content

Commit

Permalink
tests: add express.static test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 2, 2019
1 parent 8b71f39 commit 6f7a830
Show file tree
Hide file tree
Showing 11 changed files with 858 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ describe('exports', function(){
assert.equal(express.json.length, 1)
})

it('should expose static middleware', function () {
assert.equal(typeof express.static, 'function')
assert.equal(express.static.length, 2)
})

it('should expose urlencoded middleware', function () {
assert.equal(typeof express.urlencoded, 'function')
assert.equal(express.urlencoded.length, 1)
Expand Down
Loading

0 comments on commit 6f7a830

Please sign in to comment.