FIX: Ember test imports, again (#16203)

We use that import also outside of tests…
This commit is contained in:
Jarek Radosz 2022-03-16 17:12:15 +01:00 committed by GitHub
parent ecfbd45607
commit d10f95bfad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 10 deletions

View File

@ -164,6 +164,10 @@ var define, requirejs;
"@ember/object/internals": { "@ember/object/internals": {
guidFor: Ember.guidFor, guidFor: Ember.guidFor,
}, },
"@ember/test": {
registerWaiter: Ember.Test && Ember.Test.registerWaiter,
unregisterWaiter: Ember.Test && Ember.Test.unregisterWaiter,
},
I18n: { I18n: {
// eslint-disable-next-line // eslint-disable-next-line
default: I18n, default: I18n,

View File

@ -26,16 +26,6 @@ define("htmlbars-inline-precompile", () => {
}; };
}); });
define("@ember/test", () => {
// eslint-disable-next-line no-undef, discourse-ember/global-ember
const { registerWaiter, unregisterWaiter } = Ember.Test;
return {
registerWaiter,
unregisterWaiter,
};
});
let _app; let _app;
define("@ember/test-helpers", () => { define("@ember/test-helpers", () => {
let helpers = { let helpers = {