FIX: Ember test entries in discourse-loader (#16201)
Those aren't available in the production build. (+ Move to test-shims)
This commit is contained in:
parent
b0f414f7f5
commit
ecfbd45607
|
@ -164,10 +164,6 @@ var define, requirejs;
|
||||||
"@ember/object/internals": {
|
"@ember/object/internals": {
|
||||||
guidFor: Ember.guidFor,
|
guidFor: Ember.guidFor,
|
||||||
},
|
},
|
||||||
"@ember/test": {
|
|
||||||
registerWaiter: Ember.Test.registerWaiter,
|
|
||||||
unregisterWaiter: Ember.Test.unregisterWaiter,
|
|
||||||
},
|
|
||||||
I18n: {
|
I18n: {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
default: I18n,
|
default: I18n,
|
||||||
|
|
|
@ -26,6 +26,16 @@ 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 = {
|
||||||
|
|
Loading…
Reference in New Issue