DEV: prevents asyncTestDiscourse/controllerFor/fixture to leak (#7717)

This commit is contained in:
Joffrey JAFFEUX
2019-06-06 13:10:41 +02:00
committed by GitHub
parent 60c073ae59
commit c573fa780b
9 changed files with 7 additions and 13 deletions

View File

@@ -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 + "=([^&#]*)");