diff --git a/tests/dummy/app/components/page-title-pane/component.js b/tests/dummy/app/components/page-title-pane/component.js index 6d802d1d..ea483eba 100644 --- a/tests/dummy/app/components/page-title-pane/component.js +++ b/tests/dummy/app/components/page-title-pane/component.js @@ -1,25 +1,10 @@ import { A } from '@ember/array'; import Component from '@ember/component'; import { computed, set, get } from '@ember/object'; -import PageTitleList from 'ember-page-title/services/page-title-list'; - -let TitleList = PageTitleList.extend({ - _removeExistingTitleTag() { - return; - } -}); - export default Component.extend({ - tagName: '', - titleList: computed({ - get() { - return TitleList.create(); - } - }), - lastIndex: computed('titleList.tokens.length', { get() { return get(this, 'titleList.sortedTokens.length') - 1; diff --git a/tests/dummy/app/controllers/application.js b/tests/dummy/app/controllers/application.js new file mode 100644 index 00000000..2ca07e36 --- /dev/null +++ b/tests/dummy/app/controllers/application.js @@ -0,0 +1,6 @@ +import Controller from "@ember/controller"; +import { inject as service } from "@ember/service"; + +export default Controller.extend({ + router: service(), +}); diff --git a/tests/dummy/app/services/page-title-list.js b/tests/dummy/app/services/page-title-list.js new file mode 100644 index 00000000..57bbc63e --- /dev/null +++ b/tests/dummy/app/services/page-title-list.js @@ -0,0 +1,7 @@ +import PageTitleList from 'ember-page-title/services/page-title-list'; + +export default PageTitleList.extend({ + _removeExistingTitleTag() { + return; + } +}); \ No newline at end of file diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs index 306b425b..cbce8f53 100644 --- a/tests/dummy/app/templates/application.hbs +++ b/tests/dummy/app/templates/application.hbs @@ -1,6 +1,6 @@ {{! template-lint-disable simple-unless }} {{head-layout}} -{{#unless (equals currentRouteName "index")}} +{{#unless (equals this.router.currentRouteName "index")}} {{title "My App"}} {{/unless}} -{{outlet}} +{{outlet}} \ No newline at end of file diff --git a/tests/index.html b/tests/index.html index 8120c6fd..4d9c2785 100644 --- a/tests/index.html +++ b/tests/index.html @@ -1,7 +1,6 @@
-