mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:17:24 +08:00
Add tests to home-logo
component
This commit is contained in:
@ -7,10 +7,12 @@ export default function(name, opts) {
|
||||
|
||||
test(name, function(assert) {
|
||||
const appEvents = AppEvents.create();
|
||||
this.site = Discourse.Site.current();
|
||||
|
||||
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.register('site:main', Discourse.Site.current(), { instantiate: false });
|
||||
this.container.register('site:main', this.site, { instantiate: false });
|
||||
this.container.injection('component', 'siteSettings', 'site-settings:main');
|
||||
this.container.injection('component', 'appEvents', 'app-events:main');
|
||||
this.container.injection('component', 'capabilities', 'capabilities:main');
|
||||
|
Reference in New Issue
Block a user