diff --git a/addon/components/fa-icon.hbs b/addon/components/fa-icon.hbs index 6dae319..23b7fc2 100644 --- a/addon/components/fa-icon.hbs +++ b/addon/components/fa-icon.hbs @@ -1,4 +1,4 @@ -{{#if this.iconExists}} +{{~#if this.iconExists~}} {{this.content}} -{{/if}} +{{~/if~}} diff --git a/tests/integration/components/fa-icon-test.js b/tests/integration/components/fa-icon-test.js index fea8717..5e92c51 100644 --- a/tests/integration/components/fa-icon-test.js +++ b/tests/integration/components/fa-icon-test.js @@ -199,4 +199,11 @@ module('Integration | Component | fa icon', function (hooks) { assert.dom('svg').hasAttribute('x', '2'); assert.dom('svg').hasAttribute('y', '2'); }); + + test('it renders no surrounding whitespace', async function (assert) { + this.set('faCoffee', faCoffee); + await render(hbs``); + assert.ok(this.element.innerHTML.startsWith('')); + }); });