DEV: Fix a deprecated `ember` import (#9903)

See the following for `Ember.testing` and `@ember/debug isTesting`:

* 8cf29959f7/packages/ember/index.js (L372-L376)
* 8cf29959f7/packages/%40ember/debug/lib/testing.ts
This commit is contained in:
Jarek Radosz 2020-05-27 22:47:46 +02:00 committed by GitHub
parent 9dddbcc00d
commit 75f46ca632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -29,6 +29,7 @@ var define, requirejs;
inject: Ember.inject.controller
},
"@ember/debug": {
isTesting: () => Ember.testing,
warn: Ember.warn
},
"@ember/object": {

View File

@ -1,9 +1,9 @@
import EmberObject from "@ember/object";
import Ember from "ember";
import { isTesting } from "@ember/debug";
export default EmberObject.create({
reload: function() {
if (!Ember.testing) {
reload() {
if (!isTesting()) {
location.reload();
}
}