Skip to content

A platform for community discussion. Free, open, simple.

DEV: Minor linting fixes (#16359)

Jarek Radosz9060a045c2bc
diff --git a/.eslintignore b/.eslintignore
index 3956d17380d..a07eade1d25 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -16,3 +16,4 @@ app/assets/javascripts/discourse/tests/test-boot-rails.js
app/assets/javascripts/discourse/tests/fixtures
node_modules/
dist/
+tmp/
diff --git a/lib/tasks/smoke_test.rake b/lib/tasks/smoke_test.rake
index fc19481778a..156e21ff49e 100644
--- a/lib/tasks/smoke_test.rake
+++ b/lib/tasks/smoke_test.rake
@@ -82,7 +82,7 @@ task "smoke:test" do
next if api_key.blank? && api_username.blank? && theme_url.blank?
- puts "Running QUnit tests for theme #{theme_url.inspect} using API key #{api_key[0..3]}… and username #{api_username.inspect}"
+ puts "Running QUnit tests for theme #{theme_url.inspect} using API key #{api_key[0..3]}... and username #{api_username.inspect}"
query_params = {
seed: Random.new.seed,
diff --git a/test/run-qunit.js b/test/run-qunit.js
index 94d53054d6d..2b6e72ab98f 100644
--- a/test/run-qunit.js
+++ b/test/run-qunit.js
@@ -128,7 +128,7 @@ async function runAllTests() {
const urlObj = new URL(url);
Fetch.requestPaused((data) => {
const requestURL = new URL(data.request.url);
- if (requestURL.hostname != urlObj.hostname) {
+ if (requestURL.hostname !== urlObj.hostname) {
Fetch.continueRequest({
requestId: data.requestId,
});
@@ -207,6 +207,7 @@ runAllTests().catch((e) => {
// The following functions are converted to strings
// And then sent to chrome to be evaluated
function logQUnit() {
+ const QUnit = window.QUnit;
let testErrors = [];
let assertionErrors = [];
@@ -319,6 +320,7 @@ function logQUnit() {
window.qunitDone = context;
});
+
QUnit.start();
}
let qunit_script = logQUnit.toString();