loopback-boot/test
Miroslav Bajtoš 3ba43e1197 Pass `app` to fn exported by auto-required script
When a script in `models/` or `boot/` exports a function which is not
a loopback.Model constructor, the bootstrapper immediatelly calls
this exported function wit the current `app` object.

This is providing a dependency injection mechanism for boot scripts,
so that they no longer need to know where to find the `app` object.

Note: the dependency injection is optional. Existing code getting
`app` reference via `require('../app')` will continue to work.
2014-05-27 16:11:54 +02:00
..
fixtures/simple-app Initial implementation 2014-05-23 16:50:40 +02:00
helpers Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
boot.test.js Pass `app` to fn exported by auto-required script 2014-05-27 16:11:54 +02:00
global-setup.js Initial implementation 2014-05-23 16:50:40 +02:00