loopback-boot/test
Miroslav Bajtoš b0e5a0bc63 executor: move "booted" and cb() to the next tick
Fix executor to always emit the "booted" event and call the callback
in the next tick of the event loop, regardless of whether there are any
async boot scripts.

Before this change, adding a listener for "booted" event was cumbersome:

    boot(app);
    if (app.booting)
      app.on('booted', handler);
    else
      handler();

With the fix in place, one can simply write the following:

    boot(app);
    app.on('booted', handler);
2016-02-22 11:01:06 +01:00
..
fixtures add env folder for boot 2015-09-29 12:31:46 +08:00
helpers Fix the build failure 2015-07-31 10:02:16 -07:00
browser.multiapp.test.js test: fix strict mode failure 2015-09-08 17:30:30 -07:00
browser.test.js support 'mixinsources' option 2015-05-07 14:35:55 +05:30
compiler.test.js Allow middleware array merge by a key in item objects 2015-08-10 17:17:09 -07:00
executor.test.js executor: move "booted" and cb() to the next tick 2016-02-22 11:01:06 +01:00