18 lines
394 B
JavaScript
18 lines
394 B
JavaScript
import { registerDeprecationHandler } from '@ember/debug';
|
|
import config from 'ember-get-config';
|
|
|
|
const isTesting = config.environment === 'test';
|
|
|
|
export function initialize(/* application */) {
|
|
if (isTesting) {
|
|
// Disable all deprecations for now in tests.
|
|
registerDeprecationHandler((/*message, options, next*/) => {
|
|
return;
|
|
});
|
|
}
|
|
}
|
|
|
|
export default {
|
|
initialize,
|
|
};
|