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:
parent
9dddbcc00d
commit
75f46ca632
|
@ -29,6 +29,7 @@ var define, requirejs;
|
||||||
inject: Ember.inject.controller
|
inject: Ember.inject.controller
|
||||||
},
|
},
|
||||||
"@ember/debug": {
|
"@ember/debug": {
|
||||||
|
isTesting: () => Ember.testing,
|
||||||
warn: Ember.warn
|
warn: Ember.warn
|
||||||
},
|
},
|
||||||
"@ember/object": {
|
"@ember/object": {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
import Ember from "ember";
|
import { isTesting } from "@ember/debug";
|
||||||
|
|
||||||
export default EmberObject.create({
|
export default EmberObject.create({
|
||||||
reload: function() {
|
reload() {
|
||||||
if (!Ember.testing) {
|
if (!isTesting()) {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue