From 508b025f3d0854dff4ed9dbbe2a4ee2ee1707569 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 8 Oct 2023 03:18:06 +0200 Subject: [PATCH] delet --- www/tests/.jshintrc | 52 --------------------- www/tests/helpers/destroy-app.js | 5 -- www/tests/helpers/module-for-acceptance.js | 23 --------- www/tests/helpers/resolver.js | 11 ----- www/tests/helpers/start-app.js | 18 ------- www/tests/index.html | 33 ------------- www/tests/integration/.gitkeep | 0 www/tests/test-helper.js | 6 --- www/tests/unit/.gitkeep | 0 www/tests/unit/adapters/application-test.js | 12 ----- www/tests/unit/serializers/chart-test.js | 15 ------ www/tests/units/charts/difficulty-test.js | 20 -------- 12 files changed, 195 deletions(-) delete mode 100644 www/tests/.jshintrc delete mode 100644 www/tests/helpers/destroy-app.js delete mode 100644 www/tests/helpers/module-for-acceptance.js delete mode 100644 www/tests/helpers/resolver.js delete mode 100644 www/tests/helpers/start-app.js delete mode 100644 www/tests/index.html delete mode 100644 www/tests/integration/.gitkeep delete mode 100644 www/tests/test-helper.js delete mode 100644 www/tests/unit/.gitkeep delete mode 100644 www/tests/unit/adapters/application-test.js delete mode 100644 www/tests/unit/serializers/chart-test.js delete mode 100644 www/tests/units/charts/difficulty-test.js 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 @@ - - -
- - -