discourse/app/assets/javascripts/test-shims.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
725 B
JavaScript
Raw Normal View History

// 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 };
});