diff --git a/src/ui/components/tomster-logo/component-test.js b/src/ui/components/tomster-logo/component-test.js index 95e15ae..8bb65bb 100644 --- a/src/ui/components/tomster-logo/component-test.js +++ b/src/ui/components/tomster-logo/component-test.js @@ -7,20 +7,13 @@ module('Integration | Component | tomster-logo', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); + this.model = { + filename: "tomster", + filetype: "png" + } - await render(hbs`{{tomster-logo}}`); + await render(hbs``); - assert.equal(this.element.textContent.trim(), ''); - - // Template block usage: - await render(hbs` - {{#tomster-logo}} - template block text - {{/tomster-logo}} - `); - - assert.equal(this.element.textContent.trim(), 'template block text'); + assert.equal(this.element.querySelector('img').alt, 'Tomster Logo'); }); }); diff --git a/src/ui/components/tomster-logo/template.hbs b/src/ui/components/tomster-logo/template.hbs index ec5708f..dd28c25 100644 --- a/src/ui/components/tomster-logo/template.hbs +++ b/src/ui/components/tomster-logo/template.hbs @@ -1,2 +1,2 @@ - +