Add tests to home-logo component

This commit is contained in:
Robin Ward
2016-03-21 14:16:05 -04:00
parent 9c61f45bf9
commit a9daa33953
3 changed files with 100 additions and 2 deletions

View File

@ -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');