"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"
},
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'
+ );
});
});
});
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'));
});