Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / express-load / express-load.js
290 bytesRaw
1 | ; |
2 | |
3 | var load = require('express-load'); |
4 | |
5 | var app = {}; |
6 | app.get = function () {}; |
7 | app.index = 'Welcome!'; |
8 | |
9 | var opts = {}; |
10 | // opts.verbose = true; |
11 | |
12 | load('controllers', opts).then('routes').into(app); |
13 | |
14 | if (app.controllers.fixture && |
15 | app.routes.fixture) { |
16 | console.log('ok'); |
17 | } |
18 |
Built with git-ssb-web