123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import {
- moduleFor,
- test
- } from 'ember-qunit';
- var document_title = document.title;
- moduleFor('route:privacy-policy', 'PrivacyPolicyRoute', {
- afterEach: function() {
- document.title = document_title;
- }
- });
- test('it exists', function(assert) {
- var route = this.subject();
- assert.ok(route);
- });
- test('setting', function(assert) {
- var route = this.subject();
- assert.equal(route.get('setting'), 'privacy_policy');
- });
- test('title', function(assert) {
- var route = this.subject();
- assert.equal(route.get('title'), route.get('defaultTitle'));
- var testTitle = "Lorem Ipsum Dolor Met";
- route.set("settings", {'privacy_policy_title': testTitle});
- assert.equal(route.get('title'), testTitle);
- });
- test('link', function(assert) {
- var route = this.subject();
- assert.ok(!route.get('link'));
- var testLink = "http://somewhere.com";
- route.set("settings", {'privacy_policy_link': testLink});
- assert.equal(route.get('link'), testLink);
- });
|