FIX: Include dummy capabilities object in component tests
This commit is contained in:
parent
2b9b29c8c8
commit
286738c712
|
@ -13,8 +13,10 @@ export default function(name, opts) {
|
|||
|
||||
this.container.register('site-settings:main', Discourse.SiteSettings, { instantiate: false });
|
||||
this.container.register('app-events:main', appEvents, { instantiate: false });
|
||||
this.container.register('capabilities:main', Ember.Object);
|
||||
this.container.injection('component', 'siteSettings', 'site-settings:main');
|
||||
this.container.injection('component', 'appEvents', 'app-events:main');
|
||||
this.container.injection('component', 'capabilities', 'capabilities:main');
|
||||
|
||||
andThen(() => {
|
||||
this.render(opts.template);
|
||||
|
|
Loading…
Reference in New Issue