From 0290f30f2fda616042182867591c8b333ae6c3b1 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 20 Mar 2015 13:56:36 +0000 Subject: [PATCH] Bring it up to date --- TeSt.html | 10 ++++++++++ app/templates/friends/-form.hbs | 0 config/environment.js | 6 +++--- tests/unit/adapters/application-test.js | 15 +++++++++++++++ tests/unit/models/friend-test.js | 15 +++++++++++++++ tests/unit/routes/friends-test.js | 14 ++++++++++++++ tests/unit/routes/friends/index-test.js | 14 ++++++++++++++ tests/unit/routes/friends/new-test.js | 14 ++++++++++++++ 8 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 TeSt.html create mode 100644 app/templates/friends/-form.hbs create mode 100644 tests/unit/adapters/application-test.js create mode 100644 tests/unit/models/friend-test.js create mode 100644 tests/unit/routes/friends-test.js create mode 100644 tests/unit/routes/friends/index-test.js create mode 100644 tests/unit/routes/friends/new-test.js diff --git a/TeSt.html b/TeSt.html new file mode 100644 index 0000000..71ce692 --- /dev/null +++ b/TeSt.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/templates/friends/-form.hbs b/app/templates/friends/-form.hbs new file mode 100644 index 0000000..e69de29 diff --git a/config/environment.js b/config/environment.js index 2a1ce00..92e9ebf 100644 --- a/config/environment.js +++ b/config/environment.js @@ -20,11 +20,11 @@ module.exports = function(environment) { }; if (environment === 'development') { - // ENV.APP.LOG_RESOLVER = true; - // ENV.APP.LOG_ACTIVE_GENERATION = true; + ENV.APP.LOG_RESOLVER = true; + ENV.APP.LOG_ACTIVE_GENERATION = true; // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; - // ENV.APP.LOG_VIEW_LOOKUPS = true; + ENV.APP.LOG_VIEW_LOOKUPS = true; } if (environment === 'test') { diff --git a/tests/unit/adapters/application-test.js b/tests/unit/adapters/application-test.js new file mode 100644 index 0000000..47aaf51 --- /dev/null +++ b/tests/unit/adapters/application-test.js @@ -0,0 +1,15 @@ +import { + moduleFor, + test +} from 'ember-qunit'; + +moduleFor('adapter:application', 'ApplicationAdapter', { + // Specify the other units that are required for this test. + // needs: ['serializer:foo'] +}); + +// Replace this with your real tests. +test('it exists', function(assert) { + var adapter = this.subject(); + assert.ok(adapter); +}); diff --git a/tests/unit/models/friend-test.js b/tests/unit/models/friend-test.js new file mode 100644 index 0000000..99aefc1 --- /dev/null +++ b/tests/unit/models/friend-test.js @@ -0,0 +1,15 @@ +import { + moduleForModel, + test +} from 'ember-qunit'; + +moduleForModel('friend', { + // Specify the other units that are required for this test. + needs: [] +}); + +test('it exists', function(assert) { + var model = this.subject(); + // var store = this.store(); + assert.ok(!!model); +}); diff --git a/tests/unit/routes/friends-test.js b/tests/unit/routes/friends-test.js new file mode 100644 index 0000000..876d699 --- /dev/null +++ b/tests/unit/routes/friends-test.js @@ -0,0 +1,14 @@ +import { + moduleFor, + test +} from 'ember-qunit'; + +moduleFor('route:friends', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + var route = this.subject(); + assert.ok(route); +}); diff --git a/tests/unit/routes/friends/index-test.js b/tests/unit/routes/friends/index-test.js new file mode 100644 index 0000000..7641be0 --- /dev/null +++ b/tests/unit/routes/friends/index-test.js @@ -0,0 +1,14 @@ +import { + moduleFor, + test +} from 'ember-qunit'; + +moduleFor('route:friends/index', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + var route = this.subject(); + assert.ok(route); +}); diff --git a/tests/unit/routes/friends/new-test.js b/tests/unit/routes/friends/new-test.js new file mode 100644 index 0000000..297f453 --- /dev/null +++ b/tests/unit/routes/friends/new-test.js @@ -0,0 +1,14 @@ +import { + moduleFor, + test +} from 'ember-qunit'; + +moduleFor('route:friends/new', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + var route = this.subject(); + assert.ok(route); +});