Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / 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