Skip to content

Commit 6f7a830

Browse files
committed
tests: add express.static test suite
1 parent 8b71f39 commit 6f7a830

File tree

11 files changed

+858
-0
lines changed

11 files changed

+858
-0
lines changed

test/exports.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ describe('exports', function(){
1414
assert.equal(express.json.length, 1)
1515
})
1616

17+
it('should expose static middleware', function () {
18+
assert.equal(typeof express.static, 'function')
19+
assert.equal(express.static.length, 2)
20+
})
21+
1722
it('should expose urlencoded middleware', function () {
1823
assert.equal(typeof express.urlencoded, 'function')
1924
assert.equal(express.urlencoded.length, 1)

0 commit comments

Comments
 (0)