refactor: 💡 remove last get-config use case

This commit is contained in:
Randall Morey committed 2021-11-05 14:50:29 -04:00
1 parent 02b97f8734
commit 4496a42b16
3 files changed
+4 -6

No files matched your search

-1
View File
@@ -38,7 +38,6 @@
"emberx-select": "github:adopted-ember-addons/emberx-select#bc5f774"
},
"devDependencies": {
"ember-get-config": "^0.3.0",
"@babel/core": "^7.15.5",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.4.2",
@@ -1,9 +1,8 @@
import { registerDeprecationHandler } from '@ember/debug';
import config from 'ember-get-config';
const isTesting = config.environment === 'test';
export function initialize(/* application */) {
export function initialize(application) {
const config = application.resolveRegistration('config:environment');
const isTesting = config.environment === 'test';
if (isTesting) {
// Disable all deprecations for now in tests.
registerDeprecationHandler((/*message, options, next*/) => {
+1 -1
View File
@@ -9984,7 +9984,7 @@ ember-focus-trap@^0.7.0:
ember-modifier-manager-polyfill "^1.2.0"
focus-trap "^6.4.0"
"ember-get-config@^0.2.4 || ^0.3.0", ember-get-config@^0.3.0:
"ember-get-config@^0.2.4 || ^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/ember-get-config/-/ember-get-config-0.3.0.tgz#a73a1a87b48d9dde4c66a0e52ed5260b8a48cfbd"
integrity sha512-0e2pKzwW5lBZ4oJnvu9qHOht4sP1MWz/m3hyz8kpSoMdrlZVf62LDKZ6qfKgy8drcv5YhCMYE6QV7MhnqlrzEQ==