Fix Wizard unit tests

This commit is contained in:
Robin Ward
2016-11-25 14:29:24 -05:00
parent 8f70829e8e
commit 3bd5ac8015
8 changed files with 4884 additions and 113 deletions

View File

@@ -3,12 +3,12 @@ import { registerHelpers } from 'discourse-common/lib/helpers';
export default {
name: 'load-helpers',
initialize(container, registry) {
initialize(application) {
Object.keys(requirejs.entries).forEach(entry => {
if ((/\/helpers\//).test(entry)) {
require(entry, null, null, true);
}
});
registerHelpers(registry);
registerHelpers(application);
}
};