diff --git a/tests/unit/services/head-data-test.js b/tests/unit/services/head-data-test.js deleted file mode 100644 index 365f2aedb8..0000000000 --- a/tests/unit/services/head-data-test.js +++ /dev/null @@ -1,39 +0,0 @@ -import { module, test } from 'qunit'; -import { setupTest } from 'ember-qunit'; - -module('Unit | Service | head data', function (hooks) { - setupTest(hooks); - - test('title with currentPage and currentSelect details', function (assert) { - let headDataService = this.owner.lookup('service:head-data'); - let pageService = this.owner.lookup('service:page'); - - assert.equal( - headDataService.title, - 'Ember Guides', - 'Default title without currentPage nor currentSelection' - ); - - let currentPage = { - title: 'CurrentPage title', - }; - pageService.set('currentPage', currentPage); - - assert.equal( - headDataService.title, - 'Ember Guides', - 'Default title without currentSelection' - ); - - let currentSection = { - title: 'CurrentSection title', - }; - pageService.set('currentSection', currentSection); - - assert.equal( - headDataService.title, - 'CurrentPage title - CurrentSection title - Ember Guides', - 'Title with currentPage and currentSelection' - ); - }); -});