Skip to content

Commit

Permalink
Revert "FIX: Resolver wasn't being set properly"
Browse files Browse the repository at this point in the history
This reverts commit 661aebd.
  • Loading branch information
eviltrout committed Mar 26, 2020
1 parent 60df2ad commit 6f2e3d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/javascripts/test_helper.js
@@ -1,3 +1,5 @@
// discourse-skip-module

/*global document, sinon, QUnit, Logster */
//= require env
//= require jquery.debug
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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") {
Expand Down

2 comments on commit 6f2e3d6

@discoursereviewbot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

posted:

This says "Revert" but looks like a re-land?

@discoursereviewbot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robin Ward posted:

The description got mangled unfortunately, because it was a revert of a revert.

Please sign in to comment.