From: Marc Tobias Date: Sun, 16 Jan 2022 22:23:24 +0000 (+0100) Subject: linter fixes, new -yarn lint:fix- X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/6c26d04d6a58f9789de970321ed181312b582481?ds=inline;hp=-c linter fixes, new -yarn lint:fix- --- 6c26d04d6a58f9789de970321ed181312b582481 diff --git a/package.json b/package.json index 059dc33..fcc6fe2 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "rollup -c", "dev": "rollup -c -w", "lint": "eslint --quiet .*.js src/ test/", + "lint:fix": "eslint --fix .*.js src/ test/", "test": "rollup -c && mocha --recursive test/", "start": "static-server dist" }, diff --git a/test/browser.js b/test/browser.js index 078cc62..51593ff 100644 --- a/test/browser.js +++ b/test/browser.js @@ -4,7 +4,9 @@ describe('Browser behaviour', function () { it('should have a user-agent', async function () { let user_agent = await browser.userAgent(); - assert.strictEqual(user_agent, - 'Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0'); + assert.strictEqual( + user_agent, + 'Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0' + ); }); }); diff --git a/test/status.js b/test/status.js index b9fcea7..cf58885 100644 --- a/test/status.js +++ b/test/status.js @@ -13,8 +13,10 @@ describe('Status Page', function () { }); it('should have software version', async function () { - let status_details = await page.$eval('body', - el => el.textContent.match(/Software version.*\d+\.\d+/)); + let status_details = await page.$eval( + 'body', + el => el.textContent.match(/Software version.*\d+\.\d+/) + ); assert.ok(!status_details[0].includes('undefined')); });