diff --git a/test/javascripts/helpers/qunit_helpers.js b/test/javascripts/helpers/qunit_helpers.js index c1eb80f82f8..79bccf3ac01 100644 --- a/test/javascripts/helpers/qunit_helpers.js +++ b/test/javascripts/helpers/qunit_helpers.js @@ -39,4 +39,11 @@ function asyncTestDiscourse(text, func) { func.call(self); }); }); -} \ No newline at end of file +} + +function fixture(selector) { + if (selector) { + return $("#qunit-fixture").find(selector); + } + return $("#qunit-fixture"); +}