chore: fix ESLint violation and lessen rule strictness (#6081)

This commit is contained in:
Jack Franklin
2020-06-23 12:55:42 +01:00
committed by GitHub
parent fdc6fda46e
commit 70a900e93b
37 changed files with 285 additions and 101 deletions

View File

@@ -67,7 +67,7 @@ describe('Emulation', () => {
function dispatchTouch() {
let fulfill;
const promise = new Promise((x) => (fulfill = x));
window.ontouchstart = function (e) {
window.ontouchstart = () => {
fulfill('Received touch');
};
window.dispatchEvent(new Event('touchstart'));