diff --git a/app/components/header-nav-link.hbs b/app/components/header-nav-link.hbs new file mode 100644 index 0000000..b12f06b --- /dev/null +++ b/app/components/header-nav-link.hbs @@ -0,0 +1,3 @@ + + {{yield}} + diff --git a/app/components/header-nav.hbs b/app/components/header-nav.hbs index dbb5e17..69d2631 100644 --- a/app/components/header-nav.hbs +++ b/app/components/header-nav.hbs @@ -1,7 +1,11 @@ diff --git a/tests/integration/components/header-nav-link-test.js b/tests/integration/components/header-nav-link-test.js new file mode 100644 index 0000000..75e7585 --- /dev/null +++ b/tests/integration/components/header-nav-link-test.js @@ -0,0 +1,26 @@ +import { module, test } from 'qunit'; +import { setupRenderingTest } from 'ember-qunit'; +import { render } from '@ember/test-helpers'; +import { hbs } from 'ember-cli-htmlbars'; + +module('Integration | Component | header-nav-link', 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) { ... }); + + await render(hbs``); + + assert.equal(this.element.textContent.trim(), ''); + + // Template block usage: + await render(hbs` + + template block text + + `); + + assert.equal(this.element.textContent.trim(), 'template block text'); + }); +});