diff --git a/app/components/nav-banner/template.hbs b/app/components/nav-banner/template.hbs index ceef34c0a..0b467817c 100644 --- a/app/components/nav-banner/template.hbs +++ b/app/components/nav-banner/template.hbs @@ -11,7 +11,7 @@ />
diff --git a/tests/integration/components/nav-banner/component-test.js b/tests/integration/components/nav-banner/component-test.js index c7e383413..5086fa7e4 100644 --- a/tests/integration/components/nav-banner/component-test.js +++ b/tests/integration/components/nav-banner/component-test.js @@ -27,4 +27,47 @@ module('Integration | Component | nav banner', function (hooks) { assert.dom('.banner').hasText('× shutdown imminent'); }); + + test('it renders banner with image tag', async function (assert) { + const bannerStub = Service.extend({ + fetchBanners: () => + resolve([ + EmberObject.create({ + id: 2, + isActive: true, + message: `Image tag: ` + }) + ]) + }); + + this.owner.register('service:banner', bannerStub); + + await render(hbs`