mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: prevents asyncTestDiscourse/controllerFor/fixture to leak (#7717)
This commit is contained in:
@@ -176,11 +176,6 @@ QUnit.testDone(function() {
|
||||
// Load ES6 tests
|
||||
var helpers = require("helpers/qunit-helpers");
|
||||
|
||||
// TODO: Replace with proper imports rather than globals
|
||||
window.asyncTestDiscourse = helpers.asyncTestDiscourse;
|
||||
window.controllerFor = helpers.controllerFor;
|
||||
window.fixture = helpers.fixture;
|
||||
|
||||
function getUrlParameter(name) {
|
||||
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
||||
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
|
||||
|
||||
Reference in New Issue
Block a user