diff --git a/www/tests/.jshintrc b/www/tests/.jshintrc deleted file mode 100644 index d2bd113..0000000 --- a/www/tests/.jshintrc +++ /dev/null @@ -1,52 +0,0 @@ -{ - "predef": [ - "document", - "window", - "location", - "setTimeout", - "$", - "-Promise", - "define", - "console", - "visit", - "exists", - "fillIn", - "click", - "keyEvent", - "triggerEvent", - "find", - "findWithAssert", - "wait", - "DS", - "andThen", - "currentURL", - "currentPath", - "currentRouteName" - ], - "node": false, - "browser": false, - "boss": true, - "curly": true, - "debug": false, - "devel": false, - "eqeqeq": true, - "evil": true, - "forin": false, - "immed": false, - "laxbreak": false, - "newcap": true, - "noarg": true, - "noempty": false, - "nonew": false, - "nomen": false, - "onevar": false, - "plusplus": false, - "regexp": false, - "undef": true, - "sub": true, - "strict": false, - "white": false, - "eqnull": true, - "esversion": 6, - "unused": true -} diff --git a/www/tests/helpers/destroy-app.js b/www/tests/helpers/destroy-app.js deleted file mode 100644 index c3d4d1a..0000000 --- a/www/tests/helpers/destroy-app.js +++ /dev/null @@ -1,5 +0,0 @@ -import Ember from 'ember'; - -export default function destroyApp(application) { - Ember.run(application, 'destroy'); -} diff --git a/www/tests/helpers/module-for-acceptance.js b/www/tests/helpers/module-for-acceptance.js deleted file mode 100644 index 76996fd..0000000 --- a/www/tests/helpers/module-for-acceptance.js +++ /dev/null @@ -1,23 +0,0 @@ -import { module } from 'qunit'; -import Ember from 'ember'; -import startApp from '../helpers/start-app'; -import destroyApp from '../helpers/destroy-app'; - -const { RSVP: { Promise } } = Ember; - -export default function(name, options = {}) { - module(name, { - beforeEach() { - this.application = startApp(); - - if (options.beforeEach) { - return options.beforeEach.apply(this, arguments); - } - }, - - afterEach() { - let afterEach = options.afterEach && options.afterEach.apply(this, arguments); - return Promise.resolve(afterEach).then(() => destroyApp(this.application)); - } - }); -} diff --git a/www/tests/helpers/resolver.js b/www/tests/helpers/resolver.js deleted file mode 100644 index b208d38..0000000 --- a/www/tests/helpers/resolver.js +++ /dev/null @@ -1,11 +0,0 @@ -import Resolver from '../../resolver'; -import config from '../../config/environment'; - -const resolver = Resolver.create(); - -resolver.namespace = { - modulePrefix: config.modulePrefix, - podModulePrefix: config.podModulePrefix -}; - -export default resolver; diff --git a/www/tests/helpers/start-app.js b/www/tests/helpers/start-app.js deleted file mode 100644 index e098f1d..0000000 --- a/www/tests/helpers/start-app.js +++ /dev/null @@ -1,18 +0,0 @@ -import Ember from 'ember'; -import Application from '../../app'; -import config from '../../config/environment'; - -export default function startApp(attrs) { - let application; - - let attributes = Ember.merge({}, config.APP); - attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; - - Ember.run(() => { - application = Application.create(attributes); - application.setupForTesting(); - application.injectTestHelpers(); - }); - - return application; -} diff --git a/www/tests/index.html b/www/tests/index.html deleted file mode 100644 index b6ae877..0000000 --- a/www/tests/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Pool Tests - - - - {{content-for "head"}} - {{content-for "test-head"}} - - - - - - {{content-for "head-footer"}} - {{content-for "test-head-footer"}} - - - {{content-for "body"}} - {{content-for "test-body"}} - - - - - - - - {{content-for "body-footer"}} - {{content-for "test-body-footer"}} - - diff --git a/www/tests/integration/.gitkeep b/www/tests/integration/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/www/tests/test-helper.js b/www/tests/test-helper.js deleted file mode 100644 index e6cfb70..0000000 --- a/www/tests/test-helper.js +++ /dev/null @@ -1,6 +0,0 @@ -import resolver from './helpers/resolver'; -import { - setResolver -} from 'ember-qunit'; - -setResolver(resolver); diff --git a/www/tests/unit/.gitkeep b/www/tests/unit/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/www/tests/unit/adapters/application-test.js b/www/tests/unit/adapters/application-test.js deleted file mode 100644 index f0a2101..0000000 --- a/www/tests/unit/adapters/application-test.js +++ /dev/null @@ -1,12 +0,0 @@ -import { moduleFor, test } from 'ember-qunit'; - -moduleFor('adapter:application', 'Unit | Adapter | application', { - // Specify the other units that are required for this test. - // needs: ['serializer:foo'] -}); - -// Replace this with your real tests. -test('it exists', function(assert) { - let adapter = this.subject(); - assert.ok(adapter); -}); diff --git a/www/tests/unit/serializers/chart-test.js b/www/tests/unit/serializers/chart-test.js deleted file mode 100644 index d6cbad0..0000000 --- a/www/tests/unit/serializers/chart-test.js +++ /dev/null @@ -1,15 +0,0 @@ -import { moduleForModel, test } from 'ember-qunit'; - -moduleForModel('chart', 'Unit | Serializer | chart', { - // Specify the other units that are required for this test. - needs: ['serializer:chart'] -}); - -// Replace this with your real tests. -test('it serializes records', function(assert) { - let record = this.subject(); - - let serializedRecord = record.serialize(); - - assert.ok(serializedRecord); -}); diff --git a/www/tests/units/charts/difficulty-test.js b/www/tests/units/charts/difficulty-test.js deleted file mode 100644 index b702ff3..0000000 --- a/www/tests/units/charts/difficulty-test.js +++ /dev/null @@ -1,20 +0,0 @@ -import { - moduleForComponent, - test -} from 'ember-qunit'; - -moduleForComponent('difficulty', 'difficulty', { - needs: [ 'component:high-charts' ] -}); - -test('it renders', function(assert) { - assert.expect(2); - - // creates the component instance - let component = this.subject(); - assert.equal(component._state, 'preRender'); - - // appends the component to the page - this.render(assert); - assert.equal(component._state, 'inDOM'); -});