diff --git a/tests/dummy/app/controllers/application.js b/tests/dummy/app/controllers/application.js
index fe45e3686..7c7c608c1 100644
--- a/tests/dummy/app/controllers/application.js
+++ b/tests/dummy/app/controllers/application.js
@@ -1,9 +1,12 @@
-/* eslint-disable ember/no-actions-hash, prettier/prettier */
+/* eslint-disable ember/no-actions-hash */
import { equal } from '@ember/object/computed';
import Controller from '@ember/controller';
import { computed } from '@ember/object';
+import { inject as service } from '@ember/service';
export default Controller.extend({
+ router: service(),
+
actions: {
toggleExpandedItem(value, ev) {
if (this.expandedItem === value) {
@@ -11,11 +14,11 @@ export default Controller.extend({
}
this.set('expandedItem', value);
ev.stopPropagation();
- }
+ },
},
- expandedItem: computed('currentRouteName', function() {
- if (this.currentRouteName.substr(0, 6) === 'layout') {
+ expandedItem: computed('router.currentRouteName', function () {
+ if (this.router.currentRouteName.substr(0, 6) === 'layout') {
return 'layout';
} else {
return 'demos';
@@ -23,5 +26,5 @@ export default Controller.extend({
}),
demosExpanded: equal('expandedItem', 'demos'),
- layoutExpanded: equal('expandedItem', 'layout')
+ layoutExpanded: equal('expandedItem', 'layout'),
});
diff --git a/tests/dummy/app/templates/application.hbs b/tests/dummy/app/templates/application.hbs
index ee405d002..983f5ddb6 100644
--- a/tests/dummy/app/templates/application.hbs
+++ b/tests/dummy/app/templates/application.hbs
@@ -11,54 +11,54 @@