mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Minor linting fixes (#16359)
1. `test/run-qunit.js` wasn't eslinted (I'm not adding it to the CI workflow for now, just fixed the issues) 2. "…" utf character isn't rendered correctly in Jenkins, replaced with three dots 3. Don't try to lint `tmp` when doing `eslint .` in the root dir
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user