One of my modules was using:
module.exports = { loadModules: loadModules, initModules: initModules,
eventRouteModules: eventRouteModules, notifyDependenciesOfInit:
notifyDependenciesOfInit,
notifyDependenciesOfRoute: notifyDependenciesOfRoute, registerDependencies:
registerDependencies, loadAbout: loadAbout };
instead of:
module.exports.loadModules = loadModules;
module.exports.initModules = initModules;
module.exports.eventRouteModules = eventRouteModules;
module.exports.notifyDependenciesOfInit = notifyDependenciesOfInit;
module.exports.notifyDependenciesOfRoute = notifyDependenciesOfRoute;
module.exports.registerDependencies = registerDependencies;
module.exports.loadAbout = loadAbout;
Seems harmless and worked pretty much 99% of the time. However when running
mocha on TravisCI it would fail saying it couldn't find loadAbout.
I tried many different things and could not narrow it down to anything else
but this change. The issue occurs both on node 0.6 and 0.8 based versions.
Locally I tested the same variations on Mac OS and ubuntu and they did not
show the problem.
Does anyone have any ideas why this would cause problems on some platforms?