Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-79-npm / connect / connect@2.3.9.js
411 bytesRaw
1 | ; |
2 | |
3 | var connect = require('connect'); |
4 | var noop = function () {}; |
5 | var req = { headers: { }, url: '/', originalUrl: '/' }; |
6 | var res = { setHeader: noop, end: function (s) { |
7 | if (s.length > 100) { |
8 | console.log('ok'); |
9 | process.exit(); |
10 | } |
11 | } }; |
12 | |
13 | var middleware = connect.directory.html; |
14 | |
15 | middleware(req, res, [ 'file-name' ], function () { |
16 | console.log('Error not expected'); |
17 | }, 'directory-name'); |
18 |
Built with git-ssb-web