mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
b460a6d059
* The creation of a testing div is specific to Rails, so that is moved back out of setupTests(); * We've removed the `Discourse` globals from the acceptance helpers in favor of `setApplication`/`getApplication`. * We pass the container to setupTests because there is no `__container__` in later Ember versions. * `App` is now `app` because it's not a constant or class, it's an instance of an application.
38 lines
725 B
JavaScript
38 lines
725 B
JavaScript
// 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,
|
|
};
|
|
});
|
|
let _app;
|
|
define("@ember/test-helpers", () => {
|
|
return {
|
|
setResolver: window.setResolver,
|
|
setApplication(app) {
|
|
_app = app;
|
|
},
|
|
getApplication() {
|
|
return _app;
|
|
},
|
|
visit() {
|
|
return window.visit(...arguments);
|
|
},
|
|
};
|
|
});
|
|
define("pretender", () => {
|
|
return { default: window.Pretender };
|
|
});
|