git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / connect / connect@2.3.9.js

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

Built with git-ssb-web