diff --git a/test/javascripts/widgets/post-stream-test.js.es6 b/test/javascripts/widgets/post-stream-test.js.es6 index a09cc6bcbac..071d59db957 100644 --- a/test/javascripts/widgets/post-stream-test.js.es6 +++ b/test/javascripts/widgets/post-stream-test.js.es6 @@ -8,7 +8,10 @@ function postStreamTest(name, attrs) { widgetTest(name, { template: `{{mount-widget widget="post-stream" args=(hash posts=posts)}}`, beforeEach() { - this.set('posts', attrs.posts.call(this)); + const site = this.container.lookup('site:main'); + let posts = attrs.posts.call(this); + posts.forEach(p => p.set('site', site)); + this.set('posts', posts); }, test: attrs.test });