diff --git a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js index a62a75fb842..6fa80756465 100644 --- a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js +++ b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js @@ -438,22 +438,6 @@ export function acceptance(name, optionsOrCallback) { } } -export function controllerFor(controller, model) { - deprecated( - 'controllerFor is deprecated. Use the standard `getOwner(this).lookup("controller:NAME")` instead', - { - id: "discourse.controller-for", - since: "3.0.0.beta14", - } - ); - - controller = getOwnerWithFallback(this).lookup("controller:" + controller); - if (model) { - controller.set("model", model); - } - return controller; -} - export function fixture(selector) { if (selector) { return document.querySelector(`#qunit-fixture ${selector}`); @@ -461,21 +445,6 @@ export function fixture(selector) { return document.querySelector("#qunit-fixture"); } -QUnit.assert.not = function (actual, message) { - deprecated("assert.not() is deprecated. Use assert.false() instead.", { - since: "2.9.0.beta1", - dropFrom: "2.10.0.beta1", - id: "discourse.qunit.assert-not", - }); - - this.pushResult({ - result: !actual, - actual, - expected: !actual, - message, - }); -}; - QUnit.assert.blank = function (actual, message) { this.pushResult({ result: isEmpty(actual),