2020-10-10 00:00:46 +08:00
|
|
|
// discourse-skip-module
|
|
|
|
|
|
|
|
define("sinon", () => {
|
|
|
|
return { default: window.sinon };
|
|
|
|
});
|
|
|
|
define("qunit", () => {
|
|
|
|
return {
|
|
|
|
default: window.QUnit,
|
|
|
|
test: window.QUnit.test,
|
|
|
|
skip: window.QUnit.skip,
|
|
|
|
module: window.QUnit.module,
|
|
|
|
};
|
|
|
|
});
|
|
|
|
define("ember-qunit", () => {
|
|
|
|
return {
|
|
|
|
moduleFor: window.moduleFor,
|
|
|
|
moduleForComponent: window.moduleForComponent,
|
|
|
|
};
|
|
|
|
});
|
2020-10-16 01:56:19 +08:00
|
|
|
let _app;
|
2020-10-10 00:00:46 +08:00
|
|
|
define("@ember/test-helpers", () => {
|
|
|
|
return {
|
|
|
|
setResolver: window.setResolver,
|
2020-10-16 01:56:19 +08:00
|
|
|
setApplication(app) {
|
|
|
|
_app = app;
|
|
|
|
},
|
|
|
|
getApplication() {
|
|
|
|
return _app;
|
|
|
|
},
|
2020-10-15 04:10:38 +08:00
|
|
|
visit() {
|
|
|
|
return window.visit(...arguments);
|
|
|
|
},
|
2020-10-10 00:00:46 +08:00
|
|
|
};
|
|
|
|
});
|
|
|
|
define("pretender", () => {
|
|
|
|
return { default: window.Pretender };
|
|
|
|
});
|