mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
FIX: Resolver wasn't being set properly
This commit is contained in:
parent
5d66a2c16e
commit
661aebdc87
|
@ -1,3 +1,5 @@
|
|||
// discourse-skip-module
|
||||
|
||||
/*global document, sinon, QUnit, Logster */
|
||||
//= require env
|
||||
//= require jquery.debug
|
||||
|
@ -42,6 +44,9 @@
|
|||
//
|
||||
//= require jquery.magnific-popup.min.js
|
||||
|
||||
const buildResolver = require("discourse-common/resolver").buildResolver;
|
||||
window.setResolver(buildResolver("discourse").create({ namespace: Discourse }));
|
||||
|
||||
sinon.config = {
|
||||
injectIntoThis: false,
|
||||
injectInto: null,
|
||||
|
@ -103,7 +108,7 @@ function resetSite(siteSettings, extras) {
|
|||
QUnit.testStart(function(ctx) {
|
||||
server = createPretender.default;
|
||||
createPretender.applyDefaultHandlers(server);
|
||||
server.handlers = []
|
||||
server.handlers = [];
|
||||
|
||||
server.prepareBody = function(body) {
|
||||
if (body && typeof body === "object") {
|
||||
|
|
Loading…
Reference in New Issue
Block a user